How many interfaces are available in JDBC API?

How many interfaces are available in JDBC API?

The six interfaces at the bottom of Figure 1-1 are used with object-relational technology.

What does the JDBC API do?

The Java Database Connectivity (JDBC) API provides universal data access from the Java programming language. Using the JDBC API, you can access virtually any data source, from relational databases to spreadsheets and flat files.

What is connection interface in JDBC?

Connection interface It helps to establish a connection with the database. The Connection interface is a factory of Statement, PreparedStatement, and DatabaseMetaData, i.e., an object of Connection can be used to get the object of Statement and DatabaseMetaData.

Which is main component of JDBC API?

Of the major JDBC components, only DriverManager is a concrete Java class. The rest of the components are Java interfaces that are implemented by the various driver packages.

Which of the following is or are interfaces of JDBC API?

JDBC API is available in two packages java. sql, core API and javax. sql JDBC optional packages.

Is connection interface an interface of JDBC API?

All SQL statements are executed and results are returned with in the context of a Connection object. Connection interface is mainly used to create java….java. sql. Connection Interface In JDBC.

Methods Descriptions
String nativeSQL(String sql) throws SQLException This method converts the specified SQL statements into native SQL statements of the database.


Java™ database connectivity (JDBC) is the JavaSoft specification of a standard application programming interface (API) that allows Java programs to access database management systems. The JDBC API consists of a set of interfaces and classes written in the Java programming language.

What packages are available in JDBC API?

The JDBC API is comprised of two packages:

  • java. sql.
  • javax. sql.

What package contains classes and interfaces for JDBC API?

The javax. This package is also known as JDBC extension API. It provides classes and interface to access server-side data.

How many types of API are there in Java?

four types
There are four types of APIs in Java: Public.

What packages are in JDBC API?

JDBC API is available in two packages java. sql, core API and javax.

  • September 3, 2022