Return to site
JAVA CERTIFICATION QUESTION: Using a Java ResultSet to view database tables
·
Given the following WAREHOUSE table:
IDˑˑˑTITLEˑˑˑˑˑˑˑˑQUANTITY
——————————————————————————
0ˑˑˑˑCellˑPhoneˑˑˑ10
1ˑˑˑˑComputerˑˑˑˑˑ20
2ˑˑˑˑTVˑˑˑˑˑˑˑˑˑˑˑ30
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ꓛ