Java Programming June July 2022
Java Programming June July 2022
1 of 1
|''|''|||''|'''|||'|
: No:R2022054
Code R20 SET - 2
II B. Tech II Semester Regular Examinations, June/July – 2022
JAVA PROGRAMMING
(Common to CSE,IT,CSE(CSBS),&CS)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
UNIT-I
1 a) List and explain the Data types in Java program with examples. [7M]
b) Demonstrate the Increment and Decrement operators with a Java program. [7M]
Or
2 a) Develop a Java program to perform string reverse operations. [7M]
b) Compare the working of the while loop and do-while loop with suitable examples. [7M]
UNIT-II
3 a) Demonstrate pass-by-reference with an example program. [7M]
b) Develop a program to carry out withdrawal operations in ATM. [7M]
Or
4 a) Develop a method that initializes the attributes of an object. [7M]
b) Discuss the advantage of This keyword with an example Java program. [7M]
UNIT-III
5 a) Discuss the advantage of the Method overriding. [7M]
b) Develop a program to apply merge sort on array elements. [7M]
Or
6 a) Compare the features of Array with Vector. [7M]
b) Demonstrate dynamic method dispatch with an example program. [7M]
UNIT-IV
7 a) Demonstrate Auto boxing and Auto unboxing with an example program. [7M]
b) Demonstrate Checked exceptions with an example Java program. [7M]
Or
8 a) List and explain the blocks of Exception handling with examples. [7M]
b) Explain any two classes with method in Java.lang package. [7M]
UNIT-V
9 a) Is there is a need for multi-threading? Justify your answer. [7M]
b) Illustrate JDBC architecture with a neat sketch. [7M]
Or
10 a) Explain the concepts Deadlock and race condition. [7M]
b) List and explain any three methods of String class. [7M]
1 of 1
|''|''|||''|'''|||'|
: No:R2022054
Code R20 SET - 3
II B. Tech II Semester Regular Examinations, June/July - 2022
JAVA PROGRAMMING
(Common to CSE,IT,CSE(CSBS),&CS)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
UNIT-I
1 a) List and explain the features of Java language. [7M]
b) Demonstrate Nested if and else using an example. [7M]
Or
2 a) List and explain the formatted input and output statements. [7M]
b) Demonstrate implicit and explicit type casting with an example program. [7M]
UNIT-II
3 a) Develop a program to compute the GCD of two numbers using Recursion. [7M]
b) Discuss the advantage of final and static attributes. [7M]
Or
4 a) Is it possible to access Private members of a class? Justify your answer. [7M]
b) Demonstrate pass-by-value with an example Java program. [7M]
UNIT-III
5 a) Discuss the advantage of the Super keyword with a Java program. [7M]
b) Develop a Java program to read students’ six subject marks and computes the [7M]
aggregate (%).
Or
6 a) Demonstrate multi-level inheritance with an example program. [7M]
b) Develop a program to declare and access the three-dimensional arrays. [7M]
UNIT-IV
7 a) Is it possible to define multiple catch blocks in Java? Justify your answer. [7M]
b) Demonstrate Wrapper classes in Java language. [7M]
Or
8 a) Demonstrate the formatting for Date / Time in Java with an example program. [7M]
b) Discuss the importance of Throws keyword. [7M]
UNIT-V
9 a) Develop a Java program to sort the set of input strings. [7M]
b) Demonstrate Thread prioritization with an example program. [7M]
Or
10 a) Explain the steps to establish MySQL with Java. [7M]
b) Illustrate the possible states of Thread with a suitable diagram. [7M]
1 of 1
|''|''|||''|'''|||'|
: No:R2022054
Code R20 SET - 4
II B. Tech II Semester Regular Examinations, June/July - 2022
JAVA PROGRAMMING
(Common to CSE,IT,CSE(CSBS),&CS)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~
UNIT-I
1 a) Explain the usage of Static variables and methods with an example Java program. [7M]
b) List and explain the Unary, Binary and Ternary operators with examples. [7M]
Or
2 a) Demonstrate logical operators with an example Java program. [7M]
b) Develop a program to compute factorial of a number. [7M]
UNIT-II
3 a) Demonstrate the Final method with an example. [7M]
b) Discuss the advantage of a constructor. [7M]
Or
4 a) Define recursion. Discuss the advantages of recursion. [7M]
b) Is it possible to define a class within another class? Justify your answer. [7M]
UNIT-III
5 a) Illustrate types of Inheritance with a suitable diagram. [7M]
b) Discuss the advantages of the Interface. [7M]
Or
6 a) Develop a program to compute the inverse of a given matrix. [7M]
b) Demonstrate multiple Inheritance with an example Java program. [7M]
UNIT-IV
7 a) Demonstrate unchecked and checked exceptions with an example program. [7M]
b) Is it possible to Rethrow exceptions? Justify your answer. [7M]
Or
8 a) Illustrate the Hierarchy of standard Exception class with a neat sketch. [7M]
b) Demonstrate Temporal Adjusters class with an example Java program. [7M]
UNIT-V
9 a) Illustrate the JDBC architecture with a neat sketch. [7M]
b) Demonstrate Thread prioritization with a Java Program. [7M]
Or
10 a) Propose any solutions to Deadlock and Race condition issues. [7M]
b) Illustrate the Thread states transitions with a neat sketch. [7M]
1 of 1
|''|''|||''|'''|||'|