Code No: 154BE R18
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JN
B.Tech II Year II Semester Examinations, August/September - 2022
JAVA PROGRAMMING
(Common to CSE, IT)
Time: 3 hours Max. Marks: 75
TU
Answer any five questions
All questions carry equal marks
---
H
1.a) Explain the concept of classes, objects and methods in OOP.
b) List and explain the benefits of OOPS. [7+8]
U
2.a) What is Multilevel Inheritance? Write a program to demonstrate multilevel inheritance.
b) Demonstrate with an example method overriding. [8+7]
se
3.a) Explain the various levels of protection provided to the variables or methods within classes,
subclasses, and packages in java.
d
b) How to create packages and use them in java? Explain. [5+10]
4.a) Discuss the variables in interfaces and extending interfaces.
pa
b) Give a brief note on the Stream classes. [8+7]
5.a) What happens when there is no suitable try block to handle an exception? Explain.
pe
b) Write a java program to create multiple threads. [8+7]
6.a) Explain the various in-build exception handling classes in java.
b) Discuss the nested try Statements. [8+7]
rA
7. Explain the following with examples:
a) Tree Set
b) Priority Queue. [8+7]
ug
8.a) List and explain the limitations of AWT.
b) With the help of a neat diagram, explain the swing architecture. [8+7]
-2
02
--ooOoo--
2