File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

collection and generics

 
himanshu kesarwani
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me how can i understand collection and generics well.......i am not getting that from the k and b...
every thing in KB is great else generics and collection.....its not that easy to understand as other chapters are.....
I AM HAVING KHALID MUGAL ALSO.........suggest me is KB sufficient or i should go with khalid also......!!
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Himanshu I don't know about the new Khalid Mughal book but the one that I had didn't had generics in it. For generics I would recommend generics tutorial from sun. As far as collection goes, I feel that the K&B book is sufficient for collections. You just need to practice to be more familiar with collections. The khalid mughal book is too technical in it's language on the collections chapter...
 
Stephen Davies
Ranch Hand
Posts: 352
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have access to Sierra & Bates HeadFirst Java Book, its a little clearer. Generics in my opinion is about Type Safety, i.e letting the JVM know what Object types are expected in a collection for example, with the compiler complaining if the wrong type is added to the collection.

For example



Hope this throws some light on the matter!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic