πŸ“Š JAVA
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();
πŸ’¬ Discuss
βœ… Correct Answer: (D) CallableStatement cab = con.prepareCall("{call getPassword()}"); cab.executeQuery();

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
219
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Vishal Gupta
Publisher
πŸ“ˆ
85%
Success Rate