1.

Which of the following statements is valid about advantages of generics?

A. Generics shift the burden of type safety to the programmer rather than compiler.
B. Generics require use of explicit type casting.
C. Generics provide type safety without the overhead of multiple implementations.
D. Generics eliminate the possibility of run-time errors.
E. None of the above.
Answer» D. Generics eliminate the possibility of run-time errors.


Discussion

No Comment Found

Related MCQs