Why Map interface doesn’t extend the Collection interface......? ✍ Although Map interface and its implementations are part of the Collections Framework, Map is not collections and collections are not Map. Hence it doesn’t make sense for Map to extend Collection or vice versa. If Map extends Collection interface, then where are the elements? The map contains key-value pairs and it provides methods to retrieve the list of Keys or values as Collection but it doesn’t fit into the “group of elements” paradigm. - Study24x7
Social learning Network
86 followers study24x7 06 Dec 2019 03:21 PM study24x7 study24x7

Why Map interface doesn’t extend the Collection interface......? 

✍ Although Map interface and its implementations are part of the Collections Framework, Map is not collections and collections are not Map. Hence it doesn’t make sense for Map to extend Collection...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles