0% found this document useful (0 votes)
16 views1 page

2015

The document consists of a series of questions related to Java programming, covering topics such as program structure, variable naming conventions, control statements, loops, modifiers, arrays, file handling, and exception handling. Each question prompts for explanations, coding examples, or specific Java programs to demonstrate understanding. The content is aimed at assessing knowledge and practical skills in Java programming.

Uploaded by

Rahul Dhande
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

2015

The document consists of a series of questions related to Java programming, covering topics such as program structure, variable naming conventions, control statements, loops, modifiers, arrays, file handling, and exception handling. Each question prompts for explanations, coding examples, or specific Java programs to demonstrate understanding. The content is aimed at assessing knowledge and practical skills in Java programming.

Uploaded by

Rahul Dhande
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

[2015]

1. (a) Explain the structure of a Java program in detail. Why is main method declared as static in
Java Programs?
(b) Explain the rules and convensions of naming variables in Java.
2. (a) Write a Java program that reads 10 strings from user and the arranges them and displays
them in reverse alphabetical order.
(b) Explain different ways of using if statement with suitable coding examples.
3. (a) Write a program that reads a real number from the user and display it in its binary form.
(b) Explain the structure and use of entry-controlled and exit-controlled loops in Java, with
suitable example code.
4. (a) Explain, all the modifiers can you apply to a method in Java.
(b) Explain the use of multidimensional arrays in Java using suitable code examples.
5. (a) Explain the syntax of printf method as defined in Print Write Class.
(b) Write a Java program that reads a paragraph of text from the user and displays all the
uppercase alphabet in that paragraph.
6. (a) Explain the use of File class in Java.
(b) Write a Java program that displays the average daily high temperature for a period of 30
dyas. The program should read 30-day daya from the file temperatures txt, which has all 30
records and each record has a data string and a temperature separated by a space.
7. (a) Explain Java’s Out Program structures details.
(b) Explain the use of JTestField to take various types of input data into a Java program.
8. (a) Explain, with example, use of multidimensional array in Java. “A string object is
immutable” explain with example.
(b) Write the methods to compare string in Java.
9. (a) What is the purpose of declaring exceptions? How do you declare an exception and where?
Can you declare multiple exceptions in a method declaration?
(b) How do you use throws an exception in Java? Can you throw multiple exceptions in one
throws statement?
---XXX---

You might also like