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