5 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

Overall Stats

Attempted 513
Correct 148
Incorrect 118
Viewed 247

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying Call method execute() on a CallableStatement object is correct answer

Sailaja
Sailaja - 2 weeks ago

Sailaja from Surat, India is saying Call method execute() on a CallableStatement object is correct answer

Sagar Gawari
Sagar Gawari - 1 month ago

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

komal badhe
komal badhe - 1 month ago

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

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying Call method run() on a ProcedureCommand object is correct answer

Related Questions

JDBC stands for:

  • [A] Java Database Connectivity
  • [B] Java Database Components
  • [C] Java Database Control
  • [D] None of the above is correct.

Which type of Statement can execute parameterized queries?

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

Which type of Statement can execute parameterized queries?

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

Which of the following statements is false as far as different type of statements is concern in JDBC?

  • [A] Regular Statement
  • [B] Prepared Statement
  • [C] Callable Statement
  • [D] Interim Statement

What happens if you call deleteRow() on a ResultSet object?

  • [A] The row you are positioned on is deleted from the ResultSet, but not from the database.
  • [B] The row you are positioned on is deleted from the ResultSet and from the database
  • [C] The result depends on whether the property synchronizeWithDataSource is set to true or false
  • [D] You will get a compile error: the method does not exist because you can not delete rows from a ResultSet