• Post Reply Bookmark Topic Watch Topic
  • New Topic

HashMap extends AbstractHashMap and also implements Map why?  RSS feed

 
pawan chopra
Ranch Hand
Posts: 419
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have seen HashMap has extended AbstractHashMap that implements Map interface. But HashMap has also implemented Map. What is the reason behind that?
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess no reason. Maybe for clarity. Anyway it doesn't really matter, it's not like you can double implement an interface.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!