in Databases edited by
3,202 views
1 vote
1 vote

Which type of Statement can execute parameterized queries?

  1. PreparedStatement
  2. ParameterizedStatement
  3. ParameterizedStatement and CallableStatement
  4. All kinds of Statements
in Databases edited by
by
3.2k views

2 Answers

1 vote
1 vote

answer (A)PreparedStatement       Sometimes it is more convenient to use a PreparedStatement object for sending SQL statements to the database

0 votes
0 votes

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

edited by
Answer:

Related questions