*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Remember Collection Implementations 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 "Remember Collection Implementations" Watch "Remember Collection Implementations" New topic
Author

Remember Collection Implementations

Lennie De Villiers
Greenhorn

Joined: Jul 17, 2009
Posts: 24
Hi,

Is it important to remember which class implements which interface etc for the exam?
Like Vector implements List, Stack extends Vector, ArrayList implements List interface etc.

cheers

Lennie De Villiers
Jason Irwin
Ranch Hand

Joined: Jun 09, 2009
Posts: 327
Yes. Knowing if Maps implement Collection etc is important.

Although according to K&B, Stack isn't in the exam (SCJP 6, anyway).

SCJP6
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Yes it is important to know the interfaces and which class implements what.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Andriy Pererva
Ranch Hand

Joined: Jul 19, 2009
Posts: 73
Yes, it is very impotent!
Just try to memorize this picture:



(C) K.Sierra & B.Bates - SCJP 6.0 Study Guide, p.558


SCJP 6.0(95%), SCWCD 5(94%), SCJD (working on B&S v.2.3.1)
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

This graph has an error. TreeMap can not extend NavigableMap.


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14116
    
  16

You're right, that should have been a dotted line (for "implements"). The same for TreeSet and NavigableSet.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Yeap - I saw this bug in K&B book.
Andriy Pererva
Ranch Hand

Joined: Jul 19, 2009
Posts: 73
In fact, this book has a lot of little mistakes but despite all of them, the book is really the best SCJP preparation guide I ever seen and read.
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

I must agree
The book is awesome!
Andriy Pererva
Ranch Hand

Joined: Jul 19, 2009
Posts: 73
Especially the concept of "two-minute drills" at the end of every chapter! It often helps to refresh the obtained knowledge after whole book reading completed.
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8815
    
    5
fyi - the diagram shown here is from an older version of the book - I believe the diagram in the new version is correct.


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Palash Kumar
Ranch Hand

Joined: Jul 21, 2009
Posts: 33

Bert Bates wrote:fyi - the diagram shown here is from an older version of the book - I believe the diagram in the new version is correct.


yes, its correct in new books. this book is really very good.


SCJP 6 with 80%, going for SCWCD
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Bert Bates wrote:fyi - the diagram shown here is from an older version of the book - I believe the diagram in the new version is correct.

The new version? NavigableXxxs appeared in J6 so is there the second revision of K&B book for SCJP6?
Palash Kumar
Ranch Hand

Joined: Jul 21, 2009
Posts: 33

Lukas Smith wrote:The new version? NavigableXxxs appeared in J6 so is there the second revision of K&B book for SCJP6?


i do not know, which version book i have, but the diagram shown above is correct in my book.
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

I have the K&B book for SCJP6 and the diagram is wrong.
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8815
    
    5
Hi Lukas,

Are you looking at a Polish or other non-U.S. version of the book? Sometimes what we call "foreign" editions are actually older editions.

Thanks,

Bert
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

I think that there is no Polish edition, but on the other hand the english one is very good.
Actually I read ebook version from CD-ROM which was included. And the diagram in that version is wrong.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remember Collection Implementations