Which of the following is a valid method to execute a stored procedure using JDBC?

  • CallableStatement.execute() with a procedure
  • executeQuery() with a stored procedure call
  • executeStoredProc()
  • executeUpdate() with a stored procedure call
To execute a stored procedure using JDBC, you typically use the CallableStatement interface and its execute() method with a procedure call. The other options (executeStoredProc(), executeQuery() with a stored procedure call, and executeUpdate() with a stored procedure call) are not standard methods for executing stored procedures in JDBC.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *