Which of the following code segment would execute the stored procedure 'getPassword()' located in a database server? - Study24x7
Social learning Network
21 Feb 2024 10:18 AM study24x7 study24x7

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

A

CallableStatement cs = connection.prepareCall("{call.getPassword()}");cs.executeQuery();

B

CallabledStatement callable = conn.prepareCall("{call getPassword()}");callable.executeUpdate();

C

CallableStatement cab = con.prepareCall("{call getPassword()}");cab.executeQuery();

D

Callablestatement cstate = connect.prepareCall("{call getpassword()}");cstate.executeQuery();

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles