You can call the method java.sql.DriverManager.getConnection with different parameters. The parameters you choose determine which of the three declarations for this method are used.
·
The
connection options are specified as part of the connection URL:
getConnection
(String url, String user, String password)
·
The
connection options, and the name and password of the database user, are
specified as part of the connection URL:
getConnection
(String url)
·
The
connection options, and the name and password of the database user, are
specified in an object of the class
java.util.Properties:
getConnection
(String url)
See also:
Examples for Connecting to the Database