Code No: R2022054 R20 SET - 1
II B. Tech II Semester Supplementary Examinations, December - 2023
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 about Java Tokens with examples. [7M]
b) Explain about static variables and methods in detail. [7M]
Or
2 a) Write the structure of java program. Explain in detail. [7M]
b) Write a java program to simulate the operation of numerical calculator to perform [7M]
the functions Addition (+), Subtraction (-), Multiplication (*) and Division (/).
UNIT-II
3 a) Illustrate on constructor overloading. Explain with a suitable example. [7M]
b) Differentiate method overloading with method overriding with a suitable example. [7M]
Or
4 a) What is a constructor? What is its requirement in programming? Explain with a [7M]
sample program.
b) Illustrate the use of static nested classes in detail. [7M]
UNIT-III
5 a) List and explain any four methods of Object class. [7M]
b) Define an interface. What is its role in multiple in heritance? [7M]
Or
6 a) Write a differences between Abstract class and Interface. [7M]
b) Write a Java program to find the area and perimeter of square and circle using [7M]
interface.
UNIT-IV
7 a) Discuss ‘throw’ and ‘throws’ keywords for exception handling. [7M]
b) Explain nested try statements and multiple catch blocks with a suitable program. [7M]
Or
1 of 2
|'''|'|'|''||'''||||
Code No: R2022054 R20 SET - 1
8 a) Write a note on dialog box usage in user interfaces. [7M]
b) Write a simple applet program to display a string “India won by 1 wickets”. [7M]
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
II B. Tech II Semester Regular/Supplementary Examinations, July - 2023
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) Write a java program to read three numbers through the keyboard and find their sum [7M]
and average.
b) What is a variable? Explain their importance in java language. What rules to be [7M]
followed to define them?
Or
2 a) With the help of example program explain the various arithmetic operators [7M]
supported by java language.
b) List the various control statement. Explain any one control statement with the help [7M]
of flowchart and example program.
UNIT-II
3 a) In what way method overloading differs from overriding? Explain. [7M]
b) Why we need the methods to solve the problems? Explain recursive methods. [7M]
Or
4 a) Why we are using final classes and methods. Explain. [7M]
b) Give brief description about the various access control mechanisms used in java. [7M]
UNIT-III
5 a) Define an array. How can we initialize arrays? Explain. [7M]
b) Write java program to demonstrate the single inheritance. [7M]
Or
6 a) Write a program to multiple two matrices. [7M]
b) Enumerate the concept of Super Keyword with a suitable example. [7M]
UNIT-IV
7 a) Give brief description about the role of wrapper classes in java. [7M]
b) Write and explain the role of exception handling mechanism in java. [7M]
Or
8 a) Elaborate on Java.lang package and its classes. [7M]
b) Write a program to demonstrate the working of user defined exceptions. [7M]
UNIT-V
9 a) Write a java program to find any given string is palindrome or not without using [7M]
built-in functions.
b) In how many ways a thread can be created in java. Explain any one method. [7M]
Or
10 a) Write and explain the string buffer class. [7M]
b) Write a java program to implement thread priorities. [7M]
|''|'||||''|'''|||'| 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
|''|''|||''|'''|||'|