Q19
What is the result of the following Java code? List list = new ArrayList<>(); list.add(new Integer(10));
A.
Compilation error
AnswerB.
Runtime error
C.
Successful addition
D.
No output
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board