1z0-809 Exam Question 11

Given:

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

    Given:

    and the code fragment:

    Which definition of the ColorSorterclass sorts the blocks list?
  • 1z0-809 Exam Question 13

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

    Given the code fragment:
    List<Integer> list1 = Arrays.asList(10, 20);
    List<Integer> list2 = Arrays.asList(15, 30);
    //line n1
    Which code fragment, when inserted at line n1, prints 10 20 15 30?
  • 1z0-809 Exam Question 15

    Given:

    Which two interfaces can you use to create lambda expressions? (Choose two.)