m
10CS/IS753
USN
Seventh Semester B.E. Depree Examination, Dec.2018/Jan.2019
Java and J2EE
$ Time: 3 hrs. Max. Marks:100
Note: AnSWer any FIVE fullquestions, selecting atleast THVO quetions from each part
PART-A Marks)
1 a. Explain three OOP principle. (06
b. Explain how JAVA is robust and (08 Marks)
architecture neutral.
c. Write a JAVA Program to sm only the first five elements of the array.
Marks)
(2,4, 6, 8, 10, 12, 14,i6, 18} ,using "for -each" version ofthe for loop.
(06
2 a. What is an Applet? With a skeletal code, explain the methods that constitute the lite cyele oT
(08 Marks)
an applet.
(06Marks)
b. What is super? Explainthe use of super,with suitable example.
multiple
c. What is an Exception? Write the syntax of try and catch block to handle
(06 Marks)
exceptions, Explain.
3 a. What is Thread? Explain two ways of creating a thread in JÁVA, with example. (10 Marks)
b. Explain the delegation event model used to handle events in Javas What are Events,
(05 Marks)
Event Listeners and Event Sources?
(05Marks)
c. Discuss the significance of Synchronization in Java.
4 a. What are the deficiencies of AWT thatare overcome by Swings? Explain the two key
(08 Marks)
features of swings.
b. Explain with syntax the following :,
(12 Marks)
i) JLabel i)
JTextField iii) JButton iv), JCheckBox.
PART-B (10 Marks)
5 a. Explain the four types of JDBC drivers.
(10Marks)
object withnecessary codes.
b. Explain any one type ofstatement
Cyole ófa Servlet. (06Marks)
6 in the Life
a Explain the different stages (06 Marks)
, Generic class Cookie class.
b. Explain Servlet Interface
reading using servlets. (08Marks)
describe parametèr
C. Write a program to
(10 Marks)
7 a. Define JSP.Explain týpes of JSP tags by taking suitable examples.
the different
code Snippet RMI at server side. (10Marks)
b. What is RMI? Describe with
attributes. (10Marks)
List and explain EJB transaction
a.
ii) Stateless bean versus stateful bean. (10 Marks)
b. Explain : i) JAR file
-AV ***k
*
AV
AV -