Home » JAVA Programming » Generics » Question
  1. Why are generics used?
    1. Generics add stability to your code by making more of your bugs detectable at compile time
    2. Generics make code more fast
    3. Generics add stability to your code by making more of your bugs detectable at runtime
    4. Generics make code more optimised and readable
    5. None of these
Correct Option: A

Generics add stability to your code by making more of your bugs detectable at compile time.



Your comments will be displayed only after manual approval.