← Quiz: JDBC: all 10 questions
Quiz: JDBC · Question 1 of 10
Which JDBC object holds the rows returned by a SELECT?
Which JDBC object holds the rows returned by a SELECT?
- A.Connection
- B.DriverManager
- C.ResultSet
- D.PreparedStatement
Answer & explanation
Correct answer: ResultSet
executeQuery() returns a ResultSet; move through it with next().
Can you get the rest right without peeking?
Take the timed Quiz: JDBC quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →