I am learning generic programming in java. I saw these charts in Core Java (Edition 9):
And I saw these charts in Introduction to Java Programming Comprehensive Version Tenth Edition:
But I believe it should be this instead:
Could someone tell me whether I am right?
Yes, you are correct. The mistake is listed in the Errata for this edition (which might be useful for similar confirmations in the future):
Chapter 19
Page 749, Figure 19.6, change the last "A<B' subclass>" to "A<B' superclass>".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With