Generics

Q1: 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.

ANS:C - Generics provide type safety without the overhead of multiple implementations.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.