Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
HashMap extends AbstractHashMap and also implements Map why?
Joined: Jan 23, 2008
Apr 19, 2011 02:26:51
I have seen
has extended AbstractHashMap that implements Map interface. But
has also implemented Map. What is the reason behind that?
Joined: Oct 25, 2008
Apr 19, 2011 02:55:55
I guess no reason. Maybe for clarity. Anyway it doesn't really matter, it's not like you can double implement an interface.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
It is sorta covered in the
JavaRanch Style Guide
subject: HashMap extends AbstractHashMap and also implements Map why?
Objects and Collections
Map and Set
String as key to look up an Integer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013