Valid 1Z0-851 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-851 Exam! ExamDiscuss.com now offer the newest 1Z0-851 exam dumps, the ExamDiscuss.com 1Z0-851 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-851 dumps with Test Engine here:
Given: 23. Object [] myObjects = { 24. new Integer(12), 25. new String("foo"), 26. new Integer(5), 27. new Boolean(true) 28. }; 29. Arrays.sort(myObjects); 30. for(int i=0; i<myObjects.length; i++) { 31. System.out.print(myObjects[i].toString()); 32. System.out.print(" "); 33. } What is the result?
Correct Answer: C
Explanation/Reference: Explanation: Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at java.lang.Integer.compareTo(Unknown Source) at java.util.Arrays.mergeSort(Unknown Source) at java.util.Arrays.sort(Unknown Source) at Barn.main(Barn.java:29)