Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
U.S.N
Contd…2
P13CS663 Page No... 2
c. Briefly explain the role of :
i) Action event class 6
ii) Adjustment event class.
6 a. Write a Java program that uses a comparator to sort accounts by last name. 6
b. Write a program to create an applet that scrolls a text message. 4
c. Write a program using an applet which will print “Key pressed” on the status window when
you press the key, “key released” on the status window, when you release the key, and when 10
you type the characters it should print “Hello” at coordinates (50, 50) on applet.
UNIT – IV
7 a. Describe the various steps of JDBC process with code snippets. 8
b. Explain the lifecycle of Servlet. 6
c. With a code snippet, explain how session tracking is handled in Java with Servlets. 6
8 a. What are database drivers? Mention different types of drivers used in JDBC. 4
b. How a J2EE component can make a connection to database? With Syntax explain the
6
different getconnection methods.
c. Write a program using Servlet which contains HTML page to accept username and display
10
greeting message “Hello username, How are u” in the browser window.
UNIT - V
9 a. Define JSP. Explain the two types of control statements used in JSP by taking suitable
6
examples.
b. Write a server side and client side programs to simulate an RMI. 8
c. Describe the functions of EJB transaction attributes. 6
10 a. Write a JSP to create and read cookie named userid that stores the value JB0007. 5
b. Define entity Java bean. Write and explain the skeleton of entity Java bean. 8
c. With the help of diagram, explain the relationship in EJB environment. 7
***