nerdexam
Oracle

1Z0-819 · Question #140

1Z0-819 Question #140: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-819 to reveal the answer and full explanation for question #140. The question stem and answer options stay visible for context.

Question

Given: var sql = "SELECT * FROM students"; try (var conn = DriverManager.getConnection(args[0]); var ps = conn.prepareStatement(sql)) { ResultSet rs = ps._ ___(); while (rs.next()) { int i = ps. ____(); } } Which of the combinations can be filled in the blanks in order to make the code compile?

Options

  • Aexecute, executeUpdate, executeQuery
  • BexecuteUpdate, executeQuery, execute
  • CexecuteQuery, execute, executeUpdate
  • DexecuteUpdate, execute, executeQuery
  • Eexecute, executeQuery, executeUpdate
  • FexecuteQuery, executeUpdate, execute

Unlock 1Z0-819 to see the answer

You've previewed enough free 1Z0-819 questions. Unlock 1Z0-819 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 1Z0-819 Practice