📚 Practice Mode
Java Collections Framework Quiz
Learn at your own pace with hints and detailed explanations
1 / 8
Multiple Choice
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?
- TreeMap
- HashMap
- LinkedHashMap
- The answer depends on the implementation of the existing instance.