🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Connection
  2. B.DriverManager
  3. C.ResultSet
  4. 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 →