nerdexam
GIAC

GSSP-JAVA · Question #151

GSSP-JAVA Question #151: Real Exam Question with Answer & Explanation

Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #151. The question stem and answer options stay visible for context.

Question

You have the following code of a PreparedStatement. PreparedStatement stm = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?"); Which of the following statements are true about a PreparedStatement? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AThe executeUpdate() method executes the SQL query in the PreparedStatement object
  • BA PreparedStatement reduces execution time if it is required to execute the SQL
  • CWhen the executeQuery() method is used to execute a DDL statement, such as in
  • DIt is illegal for an instance of a PreparedStatement to contain a SQL statement that has

Unlock GSSP-JAVA to see the answer

You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GSSP-JAVA Practice