Question: When would you use generics in your code?

  1. to increase code performance
  2. all of these answers
  3. when code reuse is a priority
  4. when type safety is important

Answer: The correct answer of the above question is Option B:all of these answers