What must be the first characters of a database URL?

What must be the first characters of a database URL?

A. db,
B. db:
C. jdbc,
D. jdbc:

Answer

D. jdbc:

Explanation:

All JDBC URLs begin with the protocol JDBC followed by a colon as a delimiter. 
Option D is the only one that does both of these, making it the answer.
For example:
The following lines of code illustrate using the getConnection() method uses URL to connect to a MySQL database:
try (Connection connection = DriverManager
            .getConnection("jdbc:mysql://localhost:3306/mysql_database?useSSL=false", "root", "root");

Comments