ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

101 / 130

Question 101:

Given the code fragment: 
image
Assume that: The required database driver is configured in the classpath. The appropriate database is accessible with the dbURL, userName, and passWord exists The Employee table has a column ID of type integer and the SQL query matches one record. What is the result? 

Answer options:

A. Compilation fails at line 14.
B. Compilation fails at line 15.
C. The code prints the employee ID.D. The code prints Error.