Type a DriverManager.getConnection call
Type a DriverManager.getConnection call
Answer
Connection conn = DriverManager.getConnection( "jdbc:postgresql://localhost:5432/mydb", "alice", "s3cret");
The JDBC URL identifies the driver (postgresql), host, port, and database. DriverManager finds the matching Driver implementation from the jars on the classpath.