Imp Question
Imp Question
2.What is JDBC? why is it used in Java application? Explain the Architecture of JDBC..Reframe a connection to
database using JDBC?provide a code Example
3.What are cookies? Correlate the usage of Cookies in servlets.How do you set out a cookie in a servlet ?
provide an example code
4. What is transaction in context of Database ans JDBC?Explain ACID properties of transaction ..How do you
start a transaction in jDBC .Prioritize the purpose of Commit() and Rollback() methods in JDBC Desciibe how to
manage transaction using the “SetautoCommit() method
5.What is Session Tracking Illustrate the below Session tracking methods 1.Cookies 2. URL Rewriting 3. Hidden
form Fields 4.HTTP Session.Explain the different types of directive tags in JSP ?provide an Example
6.Evaluate the different types of statement objects with an Example.What is ResultSet .How do you Create,
Navigate and Retrieve Data from Result from Result.
7. Analyse the significance of servlet config object in the servlet life cycle? Correlate the difference between
the “doGet” and ‘dopost”methods iinthe context of thr service() method. How does the servlet container
manage the servlet life cycle.
8.Write a JDBC code Snippit to demonstrate a transation involving multiple SQL statements How would you
ensure data consistency in a banking application using JDBC transaction Reframe a Scenario where you would
use the savepoint feature in JDBC transaction