Question 106

Given:

What must be added in line 1 to compile this class?
  • Question 107

    Given:

    Which two interfaces can be used in lambda expressions? (Choose two.)
  • Question 108

    Given:
    List<String> longlist = List.of("Hello","World","Beat");
    List<String> shortlist = new ArrayList<>();
    Which code fragment correctly forms a short list of words containing the letter "e"?
  • Question 109

    Given:

    What is the result?
  • Question 110

    Given:
    Automobile.java

    Car.java

    What must you do so that the code prints 4?