Which type of Statement can execute parameterized queries?
answer (A)PreparedStatement Sometimes it is more convenient to use a PreparedStatement object for sending SQL statements to the database
PreparedStatement
Option A
The PreparedStatement interface extends the Statement interface. It represents a precompiled SQL statement that can be executed multiple times. It accepts parameterized SQL quires. We can pass 0 or more parameters to this query.
CallableStatement: It is used to execute SQL stored procedures.
Src : https://www.javatpoint.com/jdbc-mcq
64.3k questions
77.9k answers
244k comments
80.0k users