Multiple choice

Which of the following methods is not present in the PreparedStatement interface in java database programming?

  1. addBatch()

  2. executeQuery()

  3. executeBatch()

  4. execute()

  5. getMetaData()

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

executeBatch() method is present in the Statement interface, not in the PreparedStatement interface and it submits a batch of commands to the database for execution and if all commands execute successfully, it returns an array of update counts. So, this answer is false.