wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes collections and generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "collections and generics" Watch "collections and generics" New topic
Author

collections and generics

palak kumar
Ranch Hand

Joined: Aug 05, 2012
Posts: 57

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


OCPJP 6
Rahul mir
Ranch Hand

Joined: Oct 31, 2012
Posts: 38

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.
ujjawal rohra
Ranch Hand

Joined: Mar 20, 2010
Posts: 105
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!!!


SCJP 6
 
jQuery in Action, 2nd edition
 
subject: collections and generics