nerdexam
Oracle

1Z0-804 · Question #70

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

The correct answer is B. Set the driver class name by using the jdbc.drivers system property. D. Use the java.lang.class.forName method to load the driver class. See the full explanation below for the reasoning.

Question

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

Options

  • AAdd the driver class to the META-INF/services folder of the JAR file.
  • BSet the driver class name by using the jdbc.drivers system property.
  • CInclude the JDBC driver class in a jdbcproperties file.
  • DUse the java.lang.class.forName method to load the driver class.
  • EUse the DriverManager.getDriver method to load the driver class.

How the community answered

(24 responses)
  • A
    13% (3)
  • B
    79% (19)
  • C
    4% (1)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice