Maps in Java do not inherit from the interface “Collection” though in the most online “Tutorials” Maps are explained in the same category as Sets, Lists and Queues.
Do the Maps nevertheless belong to the Collection Framework?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best description of the Collection is at the beginning of Java Collection Tutorial.
Furthermore the tutorial lists the core collection interfaces, which all of them follow the paradigm stated above:
So Map is a Collection although it doesn’t really have to implement the
Collectioninterface.