Search Results

Search found 6 results on 1 pages for 'rayallen'.

Page 1/1 | 1 

  • Generics & Collections!

    - by RayAllen
    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 !

    Read the article

  • Java - Interfaces

    - by RayAllen
    I had a doubt .. Why do we need interface in Java ? Instead of interface can't we write the methods in the class itself ? Why do we need seperate interface?

    Read the article

1