Why Generics was introduced in Java?

Why Generics was introduced in Java?

Hi,

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

Thanks

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









Related Tutorials/Questions & Answers:
Why Generics was introduced in Java?
When were generics first introduced in Java?
Advertisements
Introduction to Generics in Java
Java2
Javah
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Generics
Javap Tool application
Artifacts of javax
ModuleNotFoundError: No module named 'javax'
ModuleNotFoundError: No module named 'javax'
Javah -  Header File Generator
Javac -source KeyTest.java
Version of javax>javaee-api dependency
eraser type generics in java
ModuleNotFoundError: No module named 'javac-parser'
ModuleNotFoundError: No module named 'javac-parser'
Version of javax>javaee-endorsed-api dependency
Version of javax>javaee-web-api dependency
Java Generics
Write a program that replaces a, e, i, o, u in Java2
Version of plexus>plexus-compiler-javac dependency
Version of com.pushtorefresh>javac-warning-annotation dependency

Ads