When would you use generics in your code?
to increase code performance
all of these answers
when code reuse is a priority
when type safety is important Official documentation: Generic classes and methods