SWARNANDHRA
COLLEGE OF ENGINEERING & TECHNOLOGY R20
AUTONOMOUS
B. Tech IV Semester Regular & Supplementary Examinations, May -2023
Java Programming
(20CS4T02)
(Computer Science & Engineering)
Time: 3 hours Max. Marks: 70
PART – A
(Answer all questions - 5 X 2 = 10 marks)
SNo Question CL CO Marks
1 A Define Polymorphism? K1 1 2
B Define an Interface? K1 2 2
C Define Exception and its types? K1 3 2
D Describe [Link] K2 4 2
E Write any two differences between SWING and APPLET K3 5 2
PART – B
(Answer all questions - 5 X 12 = 60 marks)
2 a List and explain Java buzzwords K2 1 6
b Give the naming conventions in Java. K3 1 6
OR
3 a Explain the conditional instructions in detail. K2 1 6
b Explain the Constructor Overloading with example program? K2 1 6
4 a Differentiate abstract classes with interfaces K3 2 6
b Define Package? Explain Access Protection and importing packages K2 2 6
OR
5 a Explain Inheritance with final key word K1 2 6
b Explain the Stream Classes in Byte Stream and Character Stream? K2 2 6
6 a Discuss the key terms “throw" and “throws". Give suitable examples, K2 3 6
which show how to use them.
b Distinguish between synchronous and asynchronous exceptions. K2 3 6
OR
7 a Illustratethe ways of Creating Thread with examples? K2 3 6
b Write briefly on multithreaded programming and inter thread communication in java K2 3 6
8 a Explain any three collection classes with an example each K2 4 6
b Demonstrate StringTokenizer, Bit set with an example K3 4 6
OR
9 a Explain about Map Interfaces with an example K2 4 6
b Explain Hash set, Tree set K4 4 6
10 a What is the lifecycle of an applet? Which method is used for setting security in K3 5 6
applets??
b Write Java code for a simple Banner Applet and explain it K3 5 6
OR
11 a Explain the tabbed pane swing control. K3 5 6
b JList does not support scrolling. Why? How this can be remedied? Explain with an K3 5 6
example.
####