~/ learn/ java-from-zero/ cards/ JDBC
1 of 15

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.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/2d8d5166-2580-442f-89b4-bc6bad8e507b/flashcard utf-8 LF