0 votes
in JAVA by
What is the use of generics in Java?

1 Answer

0 votes
by

What is the use of generics in Java?

Generics allow classes and interfaces to be a type for the definition of new classes in java which enables stronger type checking. It also nullifies the probability of type mismatch of data while insertion.

Related questions

0 votes
asked Oct 18, 2020 in JAVA by sharadyadav1986
0 votes
asked Oct 22, 2020 in JAVA by sharadyadav1986
...