What is the result?
A. Compilation fails.
B. Cannot add Toppings
C. The code runs with no output.
D. A NullPointerException is thrown in Line 4.
Answer:A
What is the result?
A. Compilation fails. B. Cannot add Toppings C. The code runs with no output. D. A NullPointerException is thrown in Line 4.