Question 111

Given:

Which two classes use the shape class correctly?
  • Question 112

    Given:

    What is the result?
  • Question 113

    Given the code fragment:
    List<String> codes = Arrays.asList ("DOC", "MPEG", "JPEG");
    codes.forEach (c -> System.out.print(c + " "));
    String fmt = codes.stream()
    . filter (s-> s.contains ("PEG"))
    . reduce((s, t) -> s + t).get();
    System.out.println("\n" + fmt);
    What is the result?
  • Question 114

    Given:

    What is the result?
  • Question 115

    Given the code fragment:
    Path source = Paths.get ("/data/december/log.txt");
    Path destination = Paths.get("/data");
    Files.copy (source, destination);
    and assuming that the file /data/december/log.txt is accessible and contains:
    10-Dec-2014 - Executed successfully
    What is the result?