R15
Code No: R15A0507
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
II B.Tech I Semester Supplementary Examinations, November 2017
Java Programming
(ME)
Roll No
Time: 3 hours Max. Marks: 75
Note: This question paper contains two parts A and B
Part A is compulsory which carriers 25 marks and Answer all questions.
Part B Consists of 5 SECTIONS (One SECTION for each UNIT). Answer FIVE
Questions, Choosing ONE Question from each SECTION and each Question carries
10 marks.
PART – A (25 Marks)
1. (a) Discuss scope and lifetime of variables. (2)
(b) Elucidate garbage collection in Java. (3)
(c) Differentiate a class and an interface. (3)
(d) Discuss the significance of a CLASSPATH. (2)
(e) List the benefits of exception handling. (2)
(f) Differentiate multithreading and multitasking. (3)
(g) Explain event delegation model. (3)
(h) Demonstrate AWT hierarchy. (2)
(i) List the differences between applets and an application. (3)
(j) What are the limitations of AWT. (2)
PART – B (50 Marks)
SECTION – I
2. a) Explain constructor and method overloading with an example. (10)
(OR)
3. a) Describe the buzz words of java. Also write brief overview of java. (5)
b) What are objects? How are they created from a class? (5)
SECTION – II
4. a) Demonstrate the use of super keyword with a suitable example. (5)
b) What is interface? Write a program to demonstrate how interfaces can be
extended. (5)
(OR)
5. a) What is package? How do you create a package? Explain about the access
protection in packages? (5)
b) What is a stream? What is the difference between byte streams and character streams?
How are they used to capture input from the user? (5)
SECTION – III
6. a) Illustrate an example for try catch block. (5)
b) Why thread is called light weight task and process heavy weight task. (5)
(OR)
7. Explain how threads with different priorities execute in environment which
supports priorities and which doesn’t support priorities. (10)
SECTION – IV
8. a) Explain about different event classes. (5)
b) Discuss any two Layout managers. (5)
(OR)
9. What are the methods supported by Mouse Listener interface? Explain each of them with
an example. (10)
SECTION – V
10. a) Write a simple applet program to display a string “India won by 6 wickets”. (5)
b) Discuss any two swing components. (5)
(OR)
11. Explain AWT class hierarchy with an example of AWT button. (10)
*******