Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Why Generics was introduced in Java?

Ads

 
 

Share on Google+Share on Google+

Java Coder
Why Generics was introduced in Java?
1 Answer(s)      2 years and 11 months ago
Posted in : Java Beginners

Hi,

Why Generics was introduced in Java and what is was its motive?

Thanks

Ads
View Answers

August 12, 2014 at 4:13 PM


Generics were introduced in Java for the development of more bug free code. It enables the code for compile time type checking.

Read the tutorial for more details of Generics: Introduction to Generics in Java.

Thanks


Ads