Multiple choice

Which of the following interface of JDBC (Java Database Connectivity) can not accept parameters?

  1. CallableStatement

  2. PreparedStatement

  3. Statement

  4. Both (2) and (3)

  5. None of the above

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

Yes,  a Statement object can not accept parameters and is used for static SQL statements at runtime.