What is the result of the following Java code?
List extends Number> list = new ArrayList<>();
list.add(new Integer(10));
A. Compilation error
B. Runtime error
C. Successful addition
D. No output
Answer: Option A

Join The Discussion