nerdexam
Oracle

1Z0-809 · Question #28

1Z0-809 Question #28: Real Exam Question with Answer & Explanation

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

Question

Given the records from the Employee table: eid ename 111 Tom 112 Jerry 113 Donald and given the code fragment: try { Connection conn = DriverManager.getConnection(URL, userName, passWord); Statement st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); st.execute("SELECT*FROM Employee"); ResultSet rs = st.getResultSet(); while (rs.next()) { if (rs.getInt(1) ==112) { rs.updateString(2, "Jack"); } } rs.absolute(3); System.out.println(rs.getInt(1) + " " + rs.getString(2)); } catch (SQLException ex) { System.out.println("Exception is raised"); } Assume that:
  • The required database driver is configured in the classpath.
  • The appropriate database is accessible with the URL, username, and password exists. What is the result?

Options

  • AThe Employee table is updated with the row: 112 Jack and the program prints: 112 Jerry
  • BThe Employee table is updated with the row: 112 Jack and the program prints: 112 Jack
  • CThe Employee table is NOT updated and the program prints: 112 Jerry
  • DThe program prints Exception is raised.

Unlock 1Z0-809 to see the answer

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