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+ Civil Engineering Question Bank Pdf More
1000+ Construction Materials Objective Questions & Answers More
1000+ Fluid Mechanics Quiz Questions and Answers Pdf More
1000+ Fluid Mechanics Question Bank with Answers Pdf More
1000+ Fluid Mechanics Multiple Choice Questions and Answers Pdf More
PG TRB Chemistry Previous Year Question Papers with Answers Pdf More
Compiler Design Questions and Answers for Gate 2020-2021 More
Top 100+ Heat and Temperature Gk Quiz Questions & Answers More
Senior DBA Interview Questions and Answers More
Tally ERP 9 Questions and Answers Pdf More