Collections and Generics
© examsiri.com
Question : 28 of 53
Marks:
+1,
-0
Given:
What is the result?
1. public static void append(List list) { list.add("0042"); }
2. public static void main(String[] args) {
3.   List intList = new ArrayList < Integer > ();
4.   append(intList);
5.   System.out.println(intList.get(0));
6. } What is the result?
Go to Question: