Java Previous Question Papers
Java Previous Question Papers
1 of 2
|'''|'|'|''||'''||||
Code No: R2022054 R20 SET - 1
UNIT-V
9 a) With a neat sketch, describe the thread life cycle. [7M]
b) Write a JDBC program to update the amount balance in an account after [7M]
everywithdrawal. Assume the necessary database table.
Or
10 a) Write a Java program to demonstrate multithreading operation. [7M]
b) What is synchronization? Give its types and explain. [7M]
2 of 2
|'''|'|'|''||'''||||
Code No: R2022054 R20 SET - 1
|''|'||||''|'''|||'| 1 of 1
: No: R2022054
Code R20 SET - 1
II B. Tech II Semester Supplementary Examinations, December - 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) Develop a Java program to demonstrate the behavior of static methods &variables? [7M]
b) Explain the syntax of various Loop control statements in Java. [7M]
Or
2 a) Explain how with the help of Command line arguments we can customize the [10M]
behavior of the main() method.
b) Is Java pure object-oriented program or not? Justify your answer. [4M]
UNIT-II
3 a) What are the special characteristics of constructors in Java. Write a Java program to [7M]
initialize an object through constructor methods.
b) Discuss different types of modifiers in Java and give an example for each modifier. [7M]
Or
4 a) Differentiate between Method overloading and Method overriding with a Java [7M]
Program.
b) Explain the following keywords in Java with an example program: [7M]
i) ‘this’ ii) ‘final’ keyword
UNIT-III
5 a) Define Array. How to declare initialize and access multi dimensional Arrays in Java. [7M]
b) Demonstrate the usage of ‘Super’ keyword with a Java program. [7M]
Or
6 a) What is inheritance in java? What are different types of inheritance in java? [7M]
b) Explain the concept of Dynamic Method Dispatch with a Java program. [7M]
UNIT-IV
7 a) Describe the Hierarchy of Java exception classes with a neat sketch. [7M]
b) Explain types of exceptions and explain each keyword involved in exception [7M]
handling.
Or
8 a) Define package and its importance? What are the Different types of packages? How [7M]
to create and import packages in Java?
b) Define path and class path and access control? Give suitable examples. [7M]
UNIT-V
9 a) Discuss various string manipulation functions in Java. [7M]
b) With a Java program, explain the various ways to create Threads. [7M]
Or
10 How to create a JDBC application? Describe the steps involved in the process. [14M]
1 of 1
|'''|'|'|''|''||'|||
: No:R2022054
Code R20 SET - 1
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 Tokens in the Java language. [7M]
b) Demonstrate Bitwise operators using a Java program. [7M]
Or
2 a) List and explain the control statements with examples. [7M]
b) Demonstrate the operator precedence using a Java program. [7M]
UNIT-II
3 a) Compare the working of constructor overloading with method overloading. [7M]
b) Demonstrate method overriding with an example java program. [7M]
Or
4 a) Compare the pass-by-value with the pass-by-reference method using an example. [7M]
b) Demonstrate Nested class concept with an example. [7M]
UNIT-III
5 a) Is it possible to implement multiple inheritances in Java? Justify your answer. [7M]
b) Develop a Java program to perform Binary search. [7M]
Or
6 a) Demonstrate the Nested Interfaces using an example program. [7M]
b) Develop a program to perform matrices multiplication. [7M]
UNIT-IV
7 a) Discuss the advantages of Wrapper classes. [7M]
b) Demonstrate the class Throwable with the help of a Java program. [7M]
Or
8 a) Is it possible to Rethrow exceptions? Justify your answer. [7M]
b) List and explain any four packages in Java language. [7M]
UNIT-V
9 a) Discuss the issues of Race condition and Deadlock. [7M]
b) Demonstrate Inter-thread communication with a Java program. [7M]
Or
10 a) Develop a JDBC application to establish a link between MySQL and Java to save [7M]
and access a table.
b) List and explain any three methods of a String class. [7M]
1 of 1
|''|''|||''|'''|||'|