READ Free Dumps For Oracle- 1z0-804
Question ID 3523 | Which two actions can be used in registering a JDBC 3.0 driver? |
Option A | A. Add the driver class to the META-INF/services folder of the JAR file. |
Option B | B. Set the driver class name by using the jdbc.drivers system property. |
Option C | C. Include the JDBC driver class in a jdbcproperties file. |
Option D | D. Use the java.lang.class.forName method to load the driver class. |
Option E | E. Use the DriverManager.getDriver method to load the driver class. |
Correct Answer | A,D |
Question ID 3524 | |
Option A | A. Add nested try-with-resources statements for the statement and ResultSet declarations. |
Option B | B. Add the statement and ResultSet declarations to the try-with-resources statement. |
Option C | C. Add a finally clause after the catch clause. |
Option D | D. Rethrow SQLException. |
Correct Answer | C |