Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubt Figure 7-2 K&B Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Doubt Figure 7-2 K&B" Watch "Doubt Figure 7-2 K&B" New topic
Author

Doubt Figure 7-2 K&B

Alexsandra Carvalho
Ranch Hand

Joined: Jul 13, 2007
Posts: 75
Hello,

I think there is a mistake in figure 7-2 p.538.

The HashSet class implements Set interface, but the arrow used was the extends...

Am I wrong??
Alexsandra
Kelvin Chenhao Lim
Ranch Hand

Joined: Oct 20, 2007
Posts: 513
I don't have my K&B hardcopy handy at the moment, but in the eBook the diagram is drawn with the correct dotted arrow representing "implements".


SCJP 5.0
Alexsandra Carvalho
Ranch Hand

Joined: Jul 13, 2007
Posts: 75
Yes, I saw now in my ebook and the arrow is correct (and in my printed version is wrong!!)

And there is another problem: the LinkedHashSet extends from HashSet class in my printed version, but the ebook version does not show this....


Alexsandra
Kelvin Chenhao Lim
Ranch Hand

Joined: Oct 20, 2007
Posts: 513
That is indeed strange. I'd never noticed any discrepancies between the eBook and the printed version till now.

By the way, the K&B errata list also indicates that the printed version fails to show LinkedHashMap as a subclass of HashMap.
Alexsandra Carvalho
Ranch Hand

Joined: Jul 13, 2007
Posts: 75
By the way, the K&B errata list also indicates that the printed version fails to show LinkedHashMap as a subclass of HashMap.


The ERRATA says that LinkedHashMap IS a subclass of HashMap,
isn't???
Alexsandra
Kelvin Chenhao Lim
Ranch Hand

Joined: Oct 20, 2007
Posts: 513
Originally posted by Alexsandra Carvalho:

The ERRATA says that LinkedHashMap IS a subclass of HashMap,
isn't???

Yes, LinkedHashMap should be a subclass of HashMap. But apparently this isn't indicated on the diagram.
 
Consider Paul's rocket mass heater.
 
subject: Doubt Figure 7-2 K&B
 
Similar Threads
Error on page 538 K&B
Question on Shift - left Operator .
Sierra Bates SCJP6 book Error
Using Modulus
Posting Density Stastics