Mastering Java: The Ultimate 2025 All-In-One Quiz to Excel in 'Thinking in Java' Flash Cards

Question: 1 / 510

Why can't you upcast a List<Apple> to a List<Fruit>?

?

Because generics do not support covariance by default

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy