Each correct answer represents a complete solution. Choose all that apply.
A. The executeUpdate() method executes the SQL query in the PreparedStatement object and returns the ResultSet object generated by the query.
B. A PreparedStatement reduces execution time if it is required to execute the SQL statementmultiple times.
C. When the executeQuery() method is used to execute a DDL statement, such as in creating a table, it returns the int 0.
D. It is illegal for an instance of a PreparedStatement to contain a SQL statement that has already been compiled.
Answer:A
Each correct answer represents a complete solution. Choose all that apply.
A. The executeUpdate() method executes the SQL query in the PreparedStatement object and returns the ResultSet object generated by the query. B. A PreparedStatement reduces execution time if it is required to execute the SQL statementmultiple times. C. When the executeQuery() method is used to execute a DDL statement, such as in creating a table, it returns the int 0. D. It is illegal for an instance of a PreparedStatement to contain a SQL statement that has already been compiled.