| Author |
HashMap extends AbstractHashMap and also implements Map why?
|
pawan chopra
Ranch Hand
Joined: Jan 23, 2008
Posts: 366
|
|
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?
|
Pawan Chopra
SCJP - DuMmIeS mInD
|
 |
Wouter Oet
Saloon Keeper
Joined: Oct 25, 2008
Posts: 2700
|
|
|
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.
|
 |
 |
|
|
subject: HashMap extends AbstractHashMap and also implements Map why?
|
|
|