Stark

Stark

Java program to execute a database transaction.

10.A] Write a Java program to execute a database transaction. Answer: In JDBC, Connection interface provides methods to manage transaction. Method Description void setAutoCommit(boolean status) It is true bydefault means each transaction is committed bydefault. void commit() commits the transaction.…

Explain the four types of JDBC drivers.

9.A] Explain the four types of JDBC drivers Answer: Java Database Connectivity(JDBC) is an Application Programming Interface(API) used to connect Java application with Database. JDBC Driver is a software component that enables java application to interact with the database. There…

Write a note on Session Tracking, Cookies

8.B] Write a note on:i) Session Trackingii) Cookies Answer: i) Session Tracking There are 2 techniques used in Session tracking: ii) Cookies A cookie is a small piece of information that is persisted between the multiple client requests. By default,…

List and explain core classes and interfaces in the javax.servlet package.

7.A] List and explain core classes and interfaces in the javax.servlet package. Answer: INTERFACES CLASSES Servlet ServletInputStream ServletContext ServletOutputStream ServletConfig ServletException ServletRequest UnavailableException ServletResponse GenericServlet Interface Summary Servlet Defines methods that all servlets must implement. ServletRequest Defines an object to…