PRO192_-_C2_-_FE_-_SU_2023_398.webp
T

PRO192_-_C2_-_FE_-_SU_2023_398.webp

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

Thông tin

Category
PRO192
Thêm bởi
Thái Dương1
Ngày thêm
Lượt xem
2,772
Lượt bình luận
19
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_C2_-_FE_-_SU_2023_398.webp
File size
58.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom