GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Finding 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 "Finding "Collections and Generics" chapter difficult to grasp in scjp 6 study guide.." Watch "Finding "Collections and Generics" chapter difficult to grasp in scjp 6 study guide.." New topic
Author

Finding "Collections and Generics" chapter difficult to grasp in scjp 6 study guide..

achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 86
I am finding collections and generics topic hard to follow from reading SCJP 6 guide in kathy sierra guide. Can anyone suggest a basic book for this topic?...(I have head first java but that too is not so good as to clear the basics).
Paweł Baczyński
Bartender

Joined: Apr 18, 2013
Posts: 1012
    
  16

Well, I didn't find it hard to read. Maybe you have a specific question about something that confuses you and I might help ;) ?


Formely Pawel Pawlowicz
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 763
In terms of generics, for the purpose of the exam, ask yourself if you understand these:
1 .ArrayList<String> , ArrayList<?> alist = new ArrayList<String> , ArrayList<? extends Number> numbers = new ArrayList<Integer> , ArrayList<? super Integer> numbers = new ArrayList< Object>,
2. If you have ArrayList<? extends Number> alist = ..., can you do this alist.add(...) ? No.
3. If you have ArrayList<? super Integer> alist = ... , can you do this alist.add(new Integer(10)) ? Yes. How about alist.add(new Object())? No.

Make sure you understand the basics of how generics are applied to collections.
For any questions, let us know.

 
GeeCON Prague 2014
 
subject: Finding "Collections and Generics" chapter difficult to grasp in scjp 6 study guide..