Question 111

Given:

and the code fragment:

Which modification enables the code fragment to print Speaker?
  • Question 112

    Given the code fragment:

    What is the result?
  • Question 113

    Given the definition of the Book class:

    Which statement is true about the Book class?
  • Question 114

    Given the code fragment:

    Which code fragment, when inserted at line n1, ensures false is printed?
  • Question 115

    Given the code fragment:
    Stream<Path> files = Files.walk(Paths.get(System.getProperty(“user.home”))); files.forEach (fName -> { //line n1 try { Path aPath = fName.toAbsolutePath(); //line n2 System.out.println(fName + “:”
    + Files.readAttributes(aPath,
    Basic.File.Attributes.class).creationTime
    ());
    } catch (IOException ex) {
    ex.printStackTrace();
    });
    What is the result?