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
540 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 29

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 75 views
75 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 26 40 57
1 vote
1 answer 183 views
183 views
asked augustaina Sr Member 4.8k points 10 25 31
0 votes
1 answer 174 views
0 votes
1 answer 103 views
103 views
asked sunny Expert 11.4k points 14 22 28
...