Collections and Generics
© examsiri.com
Question : 3 of 53
Marks:
+1,
-0
Given:
What is the result?
1. Object [] myObjects = {
2.   new Integer(12),
3.   new String("foo"),
4.   new Integer(5),
5.   new Boolean(true)
6. };
7. Arrays.sort(myObjects);
8. for(int i=0; i < myObjects.length; i++) {
9.   System.out.print(myObjects[i].toString());
10.   System.out.print(" ");
11. }What is the result?
Go to Question: