Multiple choice technology programming languages

The below statement returns ?executeUpdate(String sql)...

  1. Resultset

  2. Prepared Statement

  3. Statement

  4. Number of rows retrieved

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The executeUpdate(String sql) method in JDBC returns an int representing the number of rows affected by the INSERT, UPDATE, or DELETE operation. It does NOT return ResultSet (use executeQuery() for that), PreparedStatement (that's what you call the method ON), or Statement objects.