search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
550 views
asked Sr Member 4.8k points 10 25 31

1 Answer

0 votes
Generics  is a concepts introduced in the java 1.5 version. Generics is called as parameterized types.

Generics are design to provide type safely, which will reduce the need for type_casting.

Generics are set to be type erasures, which mean the generics information will be available up to compilation once compile it does not contain generic information it will be erasure.
answered Expert 15k points 15 23 30

Related questions

0 votes
1 answer 1.5K views
1.5K views
asked sunny Expert 11.4k points 14 22 28
0 votes
1 answer 76 views
76 views
Why do Generics in Java work with objects but not with primitive types? For example Gen<Integer> inum = new Gen<Integer>(100); // works fine, but Gen<int> inums = new Gen<int>(100); // is not allowed.
asked keem Expert 13.2k points 27 40 59
1 vote
1 answer 186 views
186 views
asked augustaina Sr Member 4.8k points 10 25 31
0 votes
1 answer 175 views
0 votes
1 answer 104 views
104 views
asked sunny Expert 11.4k points 14 22 28
...