Multiple choice technology architecture

Which type of Statement can execute queries stored on db server?

  1. CallableStatement

  2. ParameterizedStatement

  3. ParameterizedStatement and CallableStatement

  4. All kinds of Statements (i.e. which implement a sub interface of Statement)

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

CallableStatement is designed to execute stored procedures on the database server. ParameterizedStatement is not a standard JDBC interface. Statement and PreparedStatement execute SQL, not server-stored queries.