Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Java Collections and Streams
Pipelines
Generics
Quiz
Q 01
/ 05
Intermediate
Question 1 of 5. 0 correct, 0 incorrect.
What does declaring a collection with a type parameter buy over holding
Object
and casting?
The collection checks every element's type as it is added, while running
The collection stores elements more compactly and runs faster
The mistake is reported at the line that added the wrong thing
Check answer
Home
Learn
Paths
Saved
Community