Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 123

Which code fragment is required to load a JDBC 3.0 driver?

    Correct Answer: B

    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.

Discussion
samtash1034Option: B

b,tested

steefaandOption: B

B is correct. Since JDBC 4.0 it is no longer required to use forName method.