Which code segment could execute the stored procedure calculate() located in a database server? (a) Statement stmt

Question:

Which code segment could execute the stored procedure “calculate()” located in a database server?

(a) Statement stmt = connection. createStatement(); stmt.execute(“calculate()”);

(b) CallableStatement cs = con. prepareCall(“{call calculate}”); cs.executeQuery();

(c) PrepareStatement pstmt = connection. prepareStatement(“calculate()”); pstmt.execute();

(d) Statement stmt = connection. createStatement(); stmt.executeStoredProcedure(“calculate()”);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: