It's not a secret anymore!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes LinkedHashMap 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 "LinkedHashMap" Watch "LinkedHashMap" New topic


Sangita Mishra

Joined: Jun 15, 2005
Posts: 22
Which is True?

1) LinkedHashMap extends HashMap and implements Map
2) LinkedHashMap only implements Map (i.e. it's not a subclass of HashMap).
Dave Wood
Ranch Hand

Joined: Aug 02, 2004
Posts: 161
Are you familiar with the javadoc that's shipped with Java? It answers questions like this quite nicely...

Co-Author of <a href="" target="_blank" rel="nofollow">Java Swing</a><br />Co-Creator of <a href="" target="_blank" rel="nofollow">SCJP 5.0</a> and <a href="" target="_blank" rel="nofollow">SCJA</a> exams
I agree. Here's the link:
subject: LinkedHashMap
It's not a secret anymore!