What is the difference between the HashMap and Map objects in Java?

后端 未结 13 1185
无人及你
无人及你 2020-11-22 17:07

What is the difference between the following maps I create (in another question, people answered using them seemingly interchangeably and I\'m wondering if/how they are diff

13条回答
  •  失恋的感觉
    2020-11-22 17:24

    HashMap is an implementation of Map so it's quite the same but has "clone()" method as i see in reference guide))

提交回复
热议问题