OD
(Choose 1 answer)
What happens when you try to compile and run this application?
23. Object [] myObjects = {
24.25.new Integer(12),new String("foo"),
26.new Integer(5),
27.
28. };
new Boolean(true)
29. java.util.Array.sort(myObjects);
30 . for(int i=0; i<myObjects.length; i++) {
31.System.out.print(myObjects[i].toString());
32.System.out.print(" ");
33.}
A. Compilation fails due to an error in line 23.
B. Compilation fails due to an error in line 29.
C. The value of all four objects prints in natural order.
D. A ClassCastException occurs in line 31.
Exit (11