Forums Register Login

HashMap extends AbstractHashMap and also implements Map why?

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
I guess no reason. Maybe for clarity. Anyway it doesn't really matter, it's not like you can double implement an interface.
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 765 times.
Similar Threads
LinkedHasMap Question
String as key to look up an Integer
Map and Set
LinkedHashMap
Objects and Collections
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:50:33.