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.
SBI Computer Knowledge Study Material Pdf More
Bank Previous Year Question Papers with Answers PDF Free Download More
SAP SD Interview Questions and Answers More
Top 1000+ Bank Exams Question Papers with Answers Pdf More
1000+ SBI Computer Awareness Study Material More
Top 20,000+ Computer Science Question Bank More
Data Structure Important Questions and Answers Pdf More
Sentence Improvement Online Test More
Top 10,000+ Basic India GK Questions and Answers More
100+ Important Days in June for Bank Exams, SSC, UPSC, PSC More