Question: QUESTION 2 6 Consider the following Java code snippet: Connection conn = DriverManager.getConnection ( url , username, password ) ; Statement stmt = conn.createStatement (
QUESTION
Consider the following Java code snippet:
Connection conn DriverManager.getConnectionurl username, password;
Statement stmt conn.createStatement;
ResultSet rs stmtexecuteQuerySELECT FROM Employees";
Which of the following statements about the last method of ResultSet in Java JDBC is true?
a The last method returns a boolean indicating whether the cursor is positioned at the last row in the ResultSet.
b The last method moves the cursor to the last row in the ResultSet.
c The last method can be used to retrieve data from the last row of the ResultSet.
d The last method throws a SQLException if the ResultSet is empty.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
