Code No: 157EU R18
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JN
B. Tech IV Year I Semester Examinations, February/March - 2022
JAVA PROGRAMMING
(Common to CE, ECE, ME)
TU
Time: 3 Hours Max. Marks: 75
Answer any five questions
All questions carry equal marks
---
H
1.a) Give the syntax of various control statements used in Java programs and explain them.
b) Briefly explore the functionality of various methods in String class of Java. [7+8]
U
2.a) Demonstrate the concept of operator overloading with an example in Java program.
b) Give a short note on Garbage collection. [8+7]
se
3.a) Discuss various levels of access protection available for package and mention their
implications.
d
b) How an interface can be used to support multiple inheritance in Java? Explain briefly.
[7+8]
Pa
4.a) What is Dynamic method dispatch? Explain how to use dynamic method dispatch to
implement run-time polymorphism in Java.
b) How will you call parameterized constructor and overrided method from parent class in
pe
sub class? Illustrate with an example. [8+7]
5. Explain the concept of exception handling in Java with an example program. [15]
rs
6.a) Explain any five java's built-in exceptions defined in java.lang package.
b) What is the difference between final, finally and finalize keywords in JAVA? [9+6]
Fe
7. Explain various types of Mouse events that are defined in MouseEvent class and
MouseWheelEvent class. [15]
8.a) Explain the life-cycle of a thread with a neat diagram.
b
b) Discuss about isAlive( ) and join( ) methods. [7+8]
20
---ooOoo---
22