Advance Programming With Java
Advance Programming With Java
Page 1 of 2
5. a) Differentiate between Statement and PreparedStatement. Consider 8
db_college and tbl_student as database name and table respectively
where a tbl_student has columns name, faculty and batch. Write
Console application with CREATE, READ, UPDATE and DELETE
queries only using Prepared Statement.
b) What is a JDBC driver? Explain the different JDBC drive types and 7
can figuration
OR
Write all steps to connect Java Application with any Database. Insert
student detail (roll,name,address,age) into table “student_tbl”
6. a) Describe the life cycle of a servlet. Explain the use of doGet() and 7
doPost() methods of the Servlet with an example.
b) Create a Servlet application to showcase the concept of session and 8
cookies
7. Write short notes on: (Any two) 2×5
a) Design patterns
b) Over view of ORM
c) RMI vs. CORBA
Page 2 of 2