B.E./B.Tech. DEGREE EXAMINATION, MAY/JUNE 2012.
Fifth Semester
Computer Science and Engineering
CS 2305/CS 55/10144 CS 506 — PROGRAMMING PARADIGMS
(Regulation 2008)
Time : 3 HOhours Maximum :100 marks
Answer ALL questions.
PART A — (10 × 2 = 20 marks)
1. What do you mean by instance varibales?
2. Mention the purpose of finalize method.
3. What are the conditions to be satisfied while declaring abstract classes?
4. Define Inheritance.
5. How do you manage the color and font of a graphics in applet?
6. Mention any four event names of a button component.
7. What do you mean by reflection?
8. What is an exception?
9. What is multithreading?
10. Write note on synchronization.
PART B – (5 x 16 =80)
11. (a) Write a java program to sort ten names in descending order.
Or
(b) Explain string handling classes in java with examples.
12. (a) Give an elaborate discussion on inheritance.
Or
(b) Differentiate method overloading and method overriding. Explain both with
an example program.
13. (a) Explain any five swing components with an example program.
Or
(b) Discuss Mouse Listener and Mouse Motion Listener. Give an example program.
14.(a)Explain the following
i) Generic classes
ii) Generic methods
Or
(b) Discuss on exception handling with detail.
15. (a) Explain the following
i) States of a thread with a neat diagram. (10 marks)
(ii) Thread priorities. (6 marks)
Or
(b) Write a java application that illustrate the use of multithreading. Explain the same
with sample input.
Fifth Semester
Computer Science and Engineering
CS 2305/CS 55/10144 CS 506 — PROGRAMMING PARADIGMS
(Regulation 2008)
Time : 3 HOhours Maximum :100 marks
Answer ALL questions.
PART A — (10 × 2 = 20 marks)
1. What do you mean by instance varibales?
2. Mention the purpose of finalize method.
3. What are the conditions to be satisfied while declaring abstract classes?
4. Define Inheritance.
5. How do you manage the color and font of a graphics in applet?
6. Mention any four event names of a button component.
7. What do you mean by reflection?
8. What is an exception?
9. What is multithreading?
10. Write note on synchronization.
PART B – (5 x 16 =80)
11. (a) Write a java program to sort ten names in descending order.
Or
(b) Explain string handling classes in java with examples.
12. (a) Give an elaborate discussion on inheritance.
Or
(b) Differentiate method overloading and method overriding. Explain both with
an example program.
13. (a) Explain any five swing components with an example program.
Or
(b) Discuss Mouse Listener and Mouse Motion Listener. Give an example program.
14.(a)Explain the following
i) Generic classes
ii) Generic methods
Or
(b) Discuss on exception handling with detail.
15. (a) Explain the following
i) States of a thread with a neat diagram. (10 marks)
(ii) Thread priorities. (6 marks)
Or
(b) Write a java application that illustrate the use of multithreading. Explain the same
with sample input.