1.

Why are generics used?(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 runtimeI have been asked this question in my homework.Question is from Type Interface in division Interfaces & Packages of Java

Answer»

Correct choice is (c) Generics add STABILITY to your code by making more of your BUGS DETECTABLE at compile TIME

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



Discussion

No Comment Found

Related InterviewSolutions