Java Database Connectivity (JDBC) is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. Creating JDBC Application: There are several steps involved in building a JDBC application:
Import the packages: This requires that you include the packages containing the JDBC classes needed for database programming. Most often, using import java.sql.* .
Register the JDBC driver
Open a connection
Execute a query
Extract data from result set while(rs.next())
Cleanup environment