Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

Map a Collection

Hi,

I wonder why Map is considered Collection eventhough it does not implement Collection interface and whose behaviour is quite different from List or Set.

Please advise
SOLUTION
Avatar of CPColin
CPColin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

Besides that, I think maybe you read about a Map being considered a collection (with small 'c')
In that sense, a map is indeed a collection of key-value pairs (or a set of key-value pairs, but again also with a small 's')

Any book on java deals with Collection related chapter with Map right apart from Set and List.

I mean to say small 'c'
Big C is for interface right which is only being implemented by List and Set as attached
CollectionTop.png
I mean to say small 'c'
Well, then you got the answer: a map is a collection of key-value pairs
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial