Question: Why are generics used? (a) Generics make code more fast. (b) Generics make code more optimized and readable. (c) Generics add stability to your code

Why are generics used?

(a) Generics make code more fast.

(b) Generics make code more optimized 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 run time.

Step by Step Solution

3.43 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c Generics add sta... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!