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

Join The Discussion