Page 647 - AP Computer Science A, 7th edition
P. 647

5. (B) Implementation II invokes the toString method of the Card class. Implementation I fails because there is no default toString method for arrays. Implementation III will cause a ClassCastException: You cannot cast a Card to a String.


































































































   645   646   647   648   649