Establishing a Database Connection – Database Connectivity
24.3 Establishing a Database Connection Interaction between the application and the database is in the context of a connection. Database connections are represented by the java.sql.Connection interface. JDBC drivers provide database-specific implementations of this interface. The class java.sql.DriverManager provides the overloaded factory method get-Connection() that initializes and returns a database Connection object. Click here to