sadia

Why use generics?

I want to know the benefits of using generics.
Add a comment
0%

4 replies

ahmer
The key benefit of generics is to enable errors be detected at compile time rather than at runtime.
Add a comment
meher
Generics provide compiler with power to find type casting errors that can occur on runtime.
Add a comment