Given the code fragment:
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?
A. Compilation fails at line 14.
B. Compilation fails at line 15.
C. The code prints the employee ID.
D. The code prints Error.
D
Definitely D
A
Exactly Adnan A
D, ResultSet instance is indexed to the above of first column, must call before line 15 :rs.next();