QuestionQ28
Working with Selected Classes from the Java APIGiven this code fragment:

What is the resulting output?
- A A NullPointerException is thrown at runtime.
- B [1, 2, 4]
- C [1, 2, 4, null]
- D [1, 3, 4, null]
- E [1, 3, 4]
- F Compilation fails.
Given this code fragment:

What is the resulting output?
Community Discussion