6 years ago in JDBC

How can you execute a stored procedure in the database?

[A] Call method execute() on a CallableStatement object
[B] Call method executeProcedure() on a Statement object
[C] Call method execute() on a StoredProcedure object
[D] Call method run() on a ProcedureCommand object
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 219
Correct 55
Incorrect 51
Viewed 113

Answers

Guest
Guest
sneha chauhan - 5 months ago

Please tell the correct ans here is so much confusion

priyanka Bagul
priyanka Bagul - 4 years ago

priyanka Bagul from Pune, India is saying Call method execute() on a CallableStatement object is correct answer

Dibas B
Dibas B - 4 years ago

Dibas B from Mumbai, India is saying Call method execute() on a CallableStatement object is correct answer

Nikhil Jain
Nikhil Jain - 4 years ago

Nikhil Jain from Pune, India is saying Call method executeProcedure() on a Statement object is correct answer

Harish Kumar Sundaramurthy
Harish Kumar Sundaramurthy - 4 years ago

Harish Kumar Sundaramurthy from India is saying Call method execute() on a CallableStatement object is correct answer

Related Questions

What happens if you call the method close() on a ResultSet object?

  • [A] the method close() does not exist for a ResultSet. Only Connections can be closed.
  • [B] the database and JDBC resources are released
  • [C] you will get a SQLException, because only Statement objects can close ResultSets
  • [D] the ResultSet, together with the Statement which created it and the Connection from which the Statement was retrieved, will be closed and release all database and JDBC resources

Which type of Statement can execute parameterized queries?

  • [A] PreparedStatement
  • [B] ParameterizedStatement
  • [C] ParameterizedStatement and CallableStatement
  • [D] All kinds of Statements

Which type of driver provides JDBC access via one or more ODBC drivers?

  • [A] Type 1 driver
  • [B] Type 2 driver
  • [C] Type 3 driver
  • [D] Type 4 driver