aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collection (da Interface) question and possible errata item in K&B SCJP5 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 "Collection (da Interface) question and possible errata item in K&B SCJP5" Watch "Collection (da Interface) question and possible errata item in K&B SCJP5" New topic
Author

Collection (da Interface) question and possible errata item in K&B SCJP5

Peter Gade Christensen
Greenhorn

Joined: Sep 23, 2006
Posts: 25
So doesn't LinkedHashSet extend HashSet and LinkedHashMap extend HashMap which would mean the Figure on page 538 needs to change...

The figure has HashSet and LinkedHashSet extending Set and HashMap and LinkedHashMap extending Map ??

Biodiesel does Rock!!
Burkhard Hassel
Ranch Hand

Joined: Aug 25, 2006
Posts: 1274
Peter Gade Christensen wrote
So doesn't LinkedHashSet extend HashSet and LinkedHashMap extend HashMap which would mean the Figure on page 538 needs to change...



Yes, the biggest errata in the book.


and Peter wrote also
The figure has HashSet and LinkedHashSet extending Set and HashMap and LinkedHashMap extending Map ??


No, the figure has it implementing them, which is false as well (ok, they implement them indirectily via extending the classes mentioned above).


Yours,
Bu.


all events occur in real time
Peter Gade Christensen
Greenhorn

Joined: Sep 23, 2006
Posts: 25
bump - just to make sure Bert sees this
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8764
    
    5
Peter -

I'm on the road for a few days and I don't have the book with me - is this issue different to the errata already listed for this page?

thanks,

Bert


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Peter Gade Christensen
Greenhorn

Joined: Sep 23, 2006
Posts: 25
Bert: I am honored to talk to you - what a great book ! (Both Head First Java and your SCJP guide) ...


Yes its a little different the errata says...
"538....bug.......In figure, LinkedHashMap s/b a subclass of HashMap"
but makes no mention of LinkedHashSet being a subclass of HashSet

Thanks!
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8764
    
    5
Thanks Peter,

I'll add this to the list - argh, I must have been asleep that day

We're glad to hear you're enjoying the book - especially given what a sharp eye you have

Bert
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Collection (da Interface) question and possible errata item in K&B SCJP5
 
Similar Threads
LinkedHashSet not Extending from HashSet in SCJP 5 book by Kathy Sierra & Bert Bates
new classes in Collections Framework
Maps
Using Character and Strings with HashSet ,LinkedHashSet,HashMap,LinkedHashMap Problem
Java Collections - Internal Working