Collections and Generics

© examsiri.com
Question : 11 of 53
 
Marks: +1, -0
Given:
1. public static Iterator reverse(List list) {
2.   Collections.reverse(list);
3.   return list.iterator();
4. }
5. public static void main(String[] args) {
6.   List list = new ArrayList();
7.   list.add("1"); list.add("2"); list.add("3");
8.   for (Object obj: reverse(list))
9.   System.out.print(obj + ", ");
10. }

What is the result?
Go to Question: