Objects and Collections on Java related Questions and Answers


Question :   Suppose that you would like to create an instance of a new Map that has an iteration order that is the same as the iteration order of an existing instance of a Map. Which concrete implementation of the Map interface should be used for the new instance?
1. TreeMap
2. HashMap
3. LinkedHashMap
4. The answer depends on the implementation of the existing instance.
Answer :   3 - LinkedHashMap  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter