• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

LinkedHashMap extends HashMap...

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But in K&B book neither the class diagram show that relationship nor it is mentioned in any part of the book.

Guys Pl. clarify this issue.

Thanks
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's to clarify? Yes, LinkedHashMap extends HashMap. This is stated clearly in the API. It's not stated in the book - but that doesn't mean it's not true. There are many facts that aren't stated in K&B. This is true of most book - they don't attempt to tell you every single thing about the subject; they tell you the important things. The fact that LinkedHashMap implements Map is important; the fact that it extends HashMap isn't, really. though it's fairly obvious from the name.
 
Gautam Pandey
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks !
reply
    Bookmark Topic Watch Topic
  • New Topic