The JDBC is a pure Java API used to execute SQL statements. It provides some set of classes and interfaces that can be used by developers to write database applications.
The steps required to execute a SQL query using JDBC:
1. Release a connection to the database.
2. Accomplish the SQL statement.
3. Procedure a result.
4. Lock the connection to the database.