vos. cooks csEUID
Question Paper Code
‘B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2011.
Pith Semester ry
Computer Science and Engineering
CS 2305 — PROGRAMMING PARADIGMS rN
(Regulation 2008)
‘Time : Three hours (0 marks
Answer ALL questions,
PART A — (10 x 221
1. Define class.
List any four Java Doc -&
3. Define Inheritance Hier
about simple generic class with an example.
hat are Assertions?
9. What do you mean by Threads in Java?
10. What is multithreading,Sema csEUID
PART B — (5 x 16 = 80 marks)
11. (@) {Explain what is OOPS and explain the features of OOPS, (8)
(ii) Discuss about the usage of constructor with an example. using
Java. (8)
or *
mane mae tan evo Pye
12, (a) () Explain the concept of inheritance xple. With
Java, (8)
(i) Explain the concept of polym example. (8)
o
(b) 6G) What is smut by Fexplain it with an example, (8)
(i) Discuss in dexaipout class, with its uscfullness, (8)
13. (a) Gi Explainhow ‘used in Graphics programming, (8)
Base oF ogeciat fonts for text in Graphics
(8)
(i)
in the following in detail Model, view and controller design
sttemn, w.r.t. Swing in Java. 8
Write in detail about button and text string components. (8)
Discuss about translating generic expressions and calling
legacy code, @
ii) Explain the concept of Generic Type Information in Virtual
Machine. co)
2 55305) @
)
15. (a) (i)
(ii)
®) @
i)
wiv. csetube. in csEULD
Or
Define Exception and explain its different types. With
appropriate examples using Java. 6
What are stack trace Elements? Explain )
Explain how threads are creeted in Java. )
Write about various threads states in Java.
Or
Explain synchronization in detail. N
Write a Java program to illustrate multithread{ ing.
(10)