Which two actions can be used in registering a JDBC 3.0 driver?

Which two actions can be used in registering a JDBC 3.0 driver?

Which two actions can be used in registering a JDBC 3.0 driver?

A.
Use the DriverManager.getDriver method to load the driver class.

B.
Use the java.lang.class.forName method to load the driver class.

C.
Include the JDBC driver class in a jdbcproperties file.

D.
Add the driver class to the META-INF/services folder of the JAR file.

E.
Set the driver class name by using the jdbc.drivers system property.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


duff

duff

B,E

duff

duff

META-INF/services/java.sql.driver
just a text file with name of driver