1Z0-819 Exam Question 16

Given:

Which two lines can replace line 1 so that the Y class compiles? (Choose two.)
  • 1Z0-819 Exam Question 17

    Given the code fragment:

    What is the result?
  • 1Z0-819 Exam Question 18

    Given the code fragment:
    Path currentFile = Paths.get("/scratch/exam/temp.txt");
    Path outputFile = Paths get("/scratch/exam/new.txt");
    Path directory = Paths.get("/scratch/");
    Files.copy(currentFile, outputFile);
    Files.copy(outputFile, directory);
    Files.delete (outputFile);
    The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist.
    What is the result?
  • 1Z0-819 Exam Question 19

    Which code fragment compiles?
  • 1Z0-819 Exam Question 20

    Given:

    You want to use the myResource class in a try-with-resources statement. Which change will accomplish this?