You are on page 1of 2

H.T.

No: Course Code: 171CS4T07

ADITYA ENGINEERING COLLEGE (A)


B.Tech – IV Semester End Examinations Supplementary (AR17) – NOV 2019

JAVA PROGRAMMING
(Common to CSE & IT)
Time: 3 hours Max. Marks: 60
Answer ONE question from each unit
All Questions Carry Equal Marks
All parts of the questions must be answered at one place only

UNIT – I
1 a What is JVM? Give importance of JVM in java language. CO1 [6M]
b Write a java program factorial of a number using command line arguments. CO2 [6M]
OR
2 a List out the problems with procedure languages. How object oriented CO1 [6M]
languages overcomes the problems of procedural languages?
b Give the naming conventions in java. CO1 [6M]
UNIT – II
3 a How to share the data among the functions with the help of static keyword? CO1 [6M]
Give example.
b How Packages differ from Interfaces? Explain it with a suitable program. CO2 [6M]
OR
4 a With suitable code segments illustrate various uses of ‘final’ keyword. CO2 [6M]
b What is interface? How to create it and access it? Explain with example. CO2 [6M]
UNIT – III
5 a Write a java program which illustrates the try, catch, throw and throws and CO3 [6M]
finally blocks.
b Explain the synchronization of multiple threads in Java with an example. CO4 [6M]
OR
6 a Describe how communication between threads takes place with a CO4 [6M]
programming example.
b List the role of ‘finally’ in exception handling and explain with an example. CO3 [6M]
UNIT – IV
7 a Discuss in detail about Applet life cycle. CO6 [6M]
b Write an applet program for login page by considering username and CO6 [6M]
password. If both are correct then only it has to go to the next page.
Otherwise it has to display the error invalid user and password.
OR
8 a How to pass the parameters to an Applet? Explain with example. CO6 [6M]
b Which class acts as a bridge between byte stream and character stream? CO5 [6M]
Explain it.

(P.T.O)
UNIT – V
9 a Write a java program that computes factorial of a number when you enter that CO7 [6M]
number in text field.
b State AWT and differentiate AWT and swings. CO7 [6M]
OR
10 a Discuss about different layout managers with neat diagrams. CO7 [6M]
b Implement a java program using listeners for handling keyboard events. CO7 [6M]
*****

You might also like