1z0-809 Exam Question 1

Given the code fragments:

and

What is the result?
  • 1z0-809 Exam Question 2

    Given the code fragment:
    List<String> nL = Arrays.asList("Jim", "John", "Jeff");
    Function<String, String> funVal = s -> "Hello : ".contact(s);
    nL.Stream()
    .map(funVal)
    .peek(System.out::print);
    What is the result?
  • 1z0-809 Exam Question 3

    Given the code fragment:
    Map<Integer, String> books = new TreeMap<>();
    books.put (1007, "A");
    books.put (1002, "C");
    books.put (1003, "B");
    books.put (1003, "B");
    System.out.println (books);
    What is the result?
  • 1z0-809 Exam Question 4

    Which statement is true about the single abstract method of the java.util.function.Function interface?
  • 1z0-809 Exam Question 5

    Given the code fragments:

    and

    What is the result?
    France