Home / CSE MCQs / Java Generics :: Discussion

Discussion :: Java Generics

  1. Why are generics used?
  2. A.
    Generics make code more fast
    B.
    Generics make code more optimised and readable
    C.
    Generics add stability to your code by making more of your bugs detectable at compile time
    D.
    Generics add stability to your code by making more of your bugs detectable at a runtime

    View Answer

    Workspace

    Answer : Option C

    Explanation :



Be The First To Comment