Question 56

Given this enum declaration:

Examine this code:
System.out.println(Alphabet.getFirstLetter());
What code should be written at line 3 to make this code print A?
  • Question 57

    Given:

    Which is true?
  • Question 58

    Given an application with a main module that has this module-info.java file:

    Which two are true? (Choose two.)
  • Question 59

    Given:

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

    Given the code fragment:

    What is the result?