0% found this document useful (0 votes)
21 views1 page

FebruaryMarch 2022

The document is a past exam paper for a Java Programming course. It contains 8 questions testing various Java concepts: 1. Control statements in Java and String class methods. 2. Operator overloading and garbage collection. 3. Access protection levels and how interfaces support multiple inheritance. 4. Dynamic method dispatch and calling methods from parent classes. 5. Exception handling with an example. 6. Built-in exceptions and differences between final, finally and finalize. 7. Mouse events in MouseEvent and MouseWheelEvent classes. 8. Thread lifecycle diagram and isAlive() and join() methods.

Uploaded by

orangeideas7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

FebruaryMarch 2022

The document is a past exam paper for a Java Programming course. It contains 8 questions testing various Java concepts: 1. Control statements in Java and String class methods. 2. Operator overloading and garbage collection. 3. Access protection levels and how interfaces support multiple inheritance. 4. Dynamic method dispatch and calling methods from parent classes. 5. Exception handling with an example. 6. Built-in exceptions and differences between final, finally and finalize. 7. Mouse events in MouseEvent and MouseWheelEvent classes. 8. Thread lifecycle diagram and isAlive() and join() methods.

Uploaded by

orangeideas7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like