Spring JBDC Interview Questions and Answers - 1
What is JDBC Driver Interface?
The JDBC Driver Interface provides vendor specific implementations of the abstract classes provided by the JDBC API.
Each Vendor’s driver must provide implementations of the java.sql.Connection, Statement, PreparedStatement, CallableStatement, ResultSet and driver.
What packages are used in JDBC?
There are 8 packages:
What are the types of statements in JDBC?
Statement – to be used createStatement() method for executing single SQL statement.
PreparedStatement – To be used preparedStatement() method for executing same SQL statement over and over.
CallableStatement – To be used prepareCall() method for multiple SQL statements over and over.
What is the difference between JDBC 1.0 and JDBC 2.0?
The JDBC 2.0 API includes many new features in the java.sql package as well as the new Standard Extension package, javax.sql. This new JDBC API moves Java applications into the world of heavy duty database computing.
The new JDBC Standard Extension API, an integral part of Enterprise Java Beans (EJB) technology, allows you to write distributed transactions that use connection pooling, and it also makes it possible to connect to virtually any tabular data source, including files and spread sheets.
The JDBC 2.0 API includes many new features like
Scrollable result sets
What is JDBC?
JDBC is a set of Java API for executing SQL statements.
This API contains of a set of classes and interfaces to enable programs to write pure Java Database applications.
JDBC is a layer of abstraction that allows users to choose between database. It allows you to change to a different engine and to write to a Single API.
JDBC allows you to write database applications in Java without having to concern yourself with the underlying details of a particular database.
JDBC standards for Java Database Connectivity. It is a specification given by Sun Microsystems and standards followed by X/Open SAG (SQL Access Group) CLI (Call Level Interface) to interact with the DB.
1000+ GRE Non Verbal Reasoning Questions and Answers Pdf More
1000+ Non Verbal Reasoning Grouping of Images Questions Pdf More
Non Verbal Reasoning Grouping of Identical Figures Questions More
1000+ Transformation of Sentences Worksheet with Answers Pdf More
1000+ Ethiopian Bank Interview Questions and Answers Pdf More
Top 50+ Defence Quiz Questions and Answers More
Operating System Question Bank for Bank PO, SO, Clerk Exams More
VB.Net Windows Application Interview Questions and Answers More
100+ Heights and Distance Aptitude Questions and Answers More
100+ Mathematical Operations Questions for Bank Exams Pdf More