Establish Database Connection

To connect to the database getConnection() method is used.
Syntax:
DriverManager.getConnection(String url, String user, String password);