Page 1241 - AP Computer Science A, 7th edition
P. 1241
26. (E) Statement I is fine: The parameters are String objects and can be compared. Statement II will throw a ClassCastException because an AutoPart cannot be cast to a String. Statement III will fail because p1 and p2 are not String objects and min applies to strings. Also, the AutoPart class as currently written does not have a compareTo method, so AutoPart objects cannot be compared.