Question 56

Given that /green.txtand /colors/yellow.txtare accessible, and the code fragment:
Path source = Paths.get("/green.txt);
Path target = Paths.get("/colors/yellow.txt);
Files.move(source, target, StandardCopyOption.ATOMIC_MOVE);
Files.delete(source);
Which statement is true?
  • Question 57

    Given:

    What is the result?
  • Question 58

    Which statement is true about the DriverManager class?
  • Question 59

    Given this code;

    Which two are correct after this class is instantiated and tested?
  • Question 60

    Given the records from the Employeetable:

    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(2);
    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 accessible with the URL, userName, and passWordexists.
    What is the result?