nerdexam
Oracle

1Z0-829 · Question #30

1Z0-829 Question #30: Real Exam Question with Answer & Explanation

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

Accessing databases using JDBC

Question

Given the course table: COURSE_ID COURSE_NAME COURSE_FEE COURSE_LEVEL 1021 Java Programmer 400.00 1 1022 Java Architect 600.00 2 1023 Java Master 800.00 3 Given the code fragment: try (Connection con = DriverManager.getConnection(connectionString)) { Statement statement = con.createStatement(TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); String sql = "UPDATE course SET course_fee = ? where COURSE_LEVEL = ?"; PreparedStatement prst = con.prepareStatement(sql, TYPE_SCROLL_INSENSITIVE); prst.setDouble(1,800.00); prst.setInt(2,1); System.out.println(prst.executeUpdate()); } catch (SQLException sqlException) { System.out.println(sqlException); } What is the result?

Options

  • A2
  • Bfalse
  • Ctrue
  • D1

Unlock 1Z0-829 to see the answer

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

Topics

#JDBC PreparedStatement#executeUpdate()#SQL UPDATE#row count
Full 1Z0-829 Practice