Generics & Collections!
Posted
by RayAllen
on Stack Overflow
See other posts from Stack Overflow
or by RayAllen
Published on 2010-04-27T13:24:17Z
Indexed on
2010/04/27
13:33 UTC
Read the original article
Hit count: 440
I had a doubt.
Why,generics
(in java or any other lang), works with the objects
and not with primitive
types ?
For e.g
Gen< Integer
> inum=new Gen< Integer
>(100); works fine , but
Gen< int
> inums=new Gen< int
>(100); is not allowed.
Thanks !
© Stack Overflow or respective owner