← Quiz: JDBC: all 10 questions
Quiz: JDBC · Question 3 of 10
Which method should you call for an UPDATE statement?
Which method should you call for an UPDATE statement?
- A.executeQuery()
- B.executeUpdate()
- C.getResultSet()
- D.next()
Answer & explanation
Correct answer: executeUpdate()
executeUpdate returns how many rows were changed.
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 →