Which of the following statements about Generics is correct ?
PYQ RPSC Programmer 2013
Which of the following statements about Generics is correct ?
- A.
Generics are typed subclasses of the classes from the Collections framework.
- B.
Generics are used to parameterize the collections in order to allow for static type checking.
- C.
Generics can be used to perform type checking of the objects in a collection at runtime.
- D.
Generics can be used to iterate over a complete collection in an easy way, using the 'enhanced for' loop.
Attempted by 2 students.
Sign up free to check your answer
Sign up freeLoading lesson…

