Mastering Java: The Ultimate Quiz for 'Thinking in Java' 2025 - Free Java Programming Practice Questions and Study Guide 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