Which of the following represents the standard method for dynamically loading a driver in JDBC?

Which of the following represents the standard method for dynamically loading a
driver in JDBC?

Which of the following represents the standard method for dynamically loading a
driver in JDBC?

A.
Class.forName( DriverClassName.;

B.
Class.load ( DriverClassName.;

C.
Class.connect ( DriverClassName.;

D.
Class.initialize ( DriverClassName.;

Explanation:
Quoted directly from Sun’s Java document site at
http//developer.java.sun.com/ You must load a driver that enables the JDBC
classes to communicate with a data source. In the initial examples, the driver class
used with Cloudscape, RmiJdbcDriver, is hard-coded. Here’s the standard method
for dynamically loading a driver
Class.forName( DriverClassName.;



Leave a Reply 0

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