You are on page 1of 1

Code No: RT22052 R13 SET - 1

II B. Tech II Semester Supplementary Examinations, February - 2022


JAVA PROGRAMMING
(Com. to CSE, IT)
Time: 3 hours Max. Marks: 70
Note: 1. Question Paper consists of two parts (Part-A and Part-B)
2. Answer ALL the question in Part-A
3. Answer any THREE Questions from Part-B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PART –A
1. a) What does Java Virtual Machine do? (4M)
b) How garbage collection makes JAVA more memory efficient? (3M)
c) What is the role of 'super' and 'final' keywords in JAVA? (4M)
d) What kind of applications need to be Multi-threaded? (4M)
e) Why does an Applet not need a main() method? (4M)
f) Give the hierarchy of Java Swing classes. (3M)
PART -B
2. a) Explain the need for Object Oriented Programming and its unique advantages. (8M)
b) Describe the features of Java Programming Language that justifies its popularity. (8M)

3. a) What is a Constructor? Write its main characteristics? Explain various types of (8M)
Constructors with examples.
b) Develop a JAVA program to illustrate the significance of 'this' keyword. (8M)

4. a) What is meant by Inheritance and why it is important in Object Oriented (8M)


Programming? What happens to the public, private, and protected members of a
base class when using protected and private inheritance in JAVA? Give
explanation.
b) Give general form of the package statement. Demonstrate the significance of the (8M)
CLASSPATH environment variable in creating and using a package in JAVA.

5. a) With a neat sketch, explain the lifecycle of a Thread in JAVA. (8M)


b) How do you create a text file and write data in JAVA programming? (8M)

6. a) Write a JAVA program to create different shapes and fill colors using Applet. (8M)
b) What are the methods supported by Key Listener interface and Mouse Listener (8M)
interface? Explain each of them with examples.

7. a) Explain in brief about various layout managers supported by JAVA. (8M)


b) Write a JAVA program to create a menu bar and menus in a frame. (8M)

1 of 1

|''|'|''|''|''|||'|| www.manaresults.co.in

You might also like