Java OCA OCP Practice Question 2296

Question

which one of the following statements is a correct way to instantiate a Statement object?

  • A. Statement statement = connection.getStatement();
  • B. Statement statement = connection.createStatement();
  • C. Statement statement = connection.newStatement();
  • d. Statement statement = connection.getStatementInstance();


B.



PreviousNext

Related