Given:
11. public static void append(List list) { list.add(“0042”); }
12. public static void main(String[] args) {
13. List<Integer> intList = new ArrayList<Integer>();
14. append(intList);
15. System.out.println(intList.get(0));
16. }
What is the result?
A.
Compilation fails because of an error in line 13.
B.
0042
C.
Compilation fails because of an error in line 14.
D.
An exception is thrown at runtime.
E.
42
Explanation: