0% found this document useful (0 votes)
11 views1 page

Imp Question

Uploaded by

neha praveen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Imp Question

Uploaded by

neha praveen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.What are servlets? Illustrate the servlet life cycle with a neat diagram. .

Categorize the role of init() ,service()


and destroy() methods in the servlet life cycle

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

You might also like