A

Admin • 828.03K Points
Coach

Q. Which of the following code segment would execute the stored procedure "getPassword()" located in a database server?

  • (A) CallabledStatement callable = conn.prepareCall("{call getPassword()}"); callable.executeUpdate();
  • (B) CallableStatement cs = connection.prepareCall("{call.getPassword()}"); cs.executeQuery();
  • (C) Callablestatement cstate = connect.prepareCall("{call getpassword()}"); cstate.executeQuery();
  • (D) CallableStatement cab = con.prepareCall("{call getPassword()}"); cab.executeQuery();
  • Correct Answer - Option(D)
  • Views: 11
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.