java - Why some Collections extends Abstract also Implements interface? -


i curious why collection classes has extended abstract class , @ same time implementing interfaces there corresponding collection interface list,set etc.?. why not extending abstract class. can understand implementing other interface adding functionality cloneble, serializable, etc. extending abstract class , implementing interface abstract class has implemented . think there design principle missing. please can elaborate design reason?

the collection interfaces exist people can consume collections without knowing anything type of collection – if doesn't extend of abstract classes.
example, of concurrent collections not extend abstract base classes.

the abstract classes exist provide common base functionality implementations.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -