HashMap,LinkedHashMap and TreeMap in Java

If we use hashmap items will not be added to the map in an order

Map myMap = new HashMap<>();

For ordering of items to the map we can LinkedHashMap.If we use LinkedHashMap items are printed in the exact same order they were added.Like item 1 will print first ,then item 2 etc.

Map myMap = new LinkedHashMap();
If we instead use a TreeMap then items will be added to Map in alphabetic order like for example first "apple" then "banana",then "orange" etc
Map myMap = new TreeMap();