Answer (Choose 1 answer)
Class A is a subclass of class B. What would happen if you try to sort an array of mixed elements of type A and B?
public class B {...}public class A extends B {...}
A. They would sort based on the sorting method found in class A
B. They would sort based on the sorting method found in class B
C. Sorting would just leave the original array unsorted with no exceptions thrown
D. Sorting would yield a ClassCastException as the classes are incompatible
Exit 11