Which code fragment is required to load a JDBC 3.0 driver?
Which code fragment is required to load a JDBC 3.0 driver?
To load a JDBC 3.0 driver, you need to explicitly load the driver class using the Class.forName method. This ensures that the driver's static block is executed and the driver is registered with the DriverManager. Using Class.forName("org.xyzdata.jdbc.NetworkDriver") is the correct approach for JDBC 3.0.
b,tested
B is correct. Since JDBC 4.0 it is no longer required to use forName method.