Return to site

JAVA CERTIFICATION QUESTION: Using a Java ResultSet to view database tables

· java,ocp

Given the following WAREHOUSE table:






And the following code fragment:

Assume the database connection is properly initialized, any JDBC features used are supported by the driver and database, and any modes not explicitly shown are default.

What is the result? Choose one.

A. Runtime exception at line n1

B. Runtime exception at line n2

C. 15

D. 20

·ꓷ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ ·uoᴉsnʅɔuoꓛ