🎴 Flashcard Mode

J2EE Web Technologies - JSP, Servlets and JDBC

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which of the following are true ?

AnswerClick to flip back
A
The executeUpdate method returns the no. of rows that were affected
💡 Explanation:

The executeUpdate() method returns an integer representing the number of rows affected by INSERT, UPDATE, or DELETE operations. This allows applications to verify whether the operation succeeded. Option A is imprecise (doesn't specify what's returned), and option C is incorrect; there's only one executeUpdate method signature that returns int.

Change Mode