Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

collections and generics

 
Ranch Hand
Posts: 57
Notepad Chrome Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi there, i'm unable to understand the chapter about collections and generics. How should i approach that chapter? I try but could not do it. Help me
 
Ranch Hand
Posts: 38
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
In Java programming Generic and Collection play a very important role. Generic is introduce in J2SE5. A common use of Generic is when using a Java Collection that can hold objects of any type, to specify the specific type of object stored in it.
you first start with collection and then approach for Generic.
these links are good to start learning with generic and collection.
http://docs.oracle.com/javase/tutorial/collections/index.html
http://docs.oracle.com/javase/tutorial/java/generics/index.html
http://docs.oracle.com/javase/tutorial/extra/generics/index.html

You can also refer O'Reilly Java Generic and Collection book http://shop.oreilly.com/product/9780596527754.do.
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Palak

According to me, for understanding Collection and Generics go ahead in parts since they are two separate topics although they are related. Generics follows Collections. Do not try to read in a single shot.
More importantly, understand practically as much as possible. Make programs and learn by experimenting with them and it will definitely help you.

All The Best... Cheers!!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic