Question 6
Given:
var fruits = List.of("apple", "orange", "banana", "lemon");
You want to examine the first element that contains the character n. Which statement will accomplish this?
Question 7
Given the code fragment:
Which "for" loop produces the same output?
Question 8
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 9
Examine this excerpt from the declaration of the java.se module:
What does the transitive modifier mean?
Question 10
Given:
What is required to make the Foo class thread safe?

