This question already has an answer here:
When LinkedHashMap.keySet() is called, will the order of the Set returned be the same as the order the keys were added in?
This question already has an answer here:
When LinkedHashMap.keySet() is called, will the order of the Set returned be the same as the order the keys were added in?
Yes. The exception is that when a key is reinserted, it appears in the order in which it was first inserted to the list.
Yes.
See: LinkedHashMap:
and from the HashMap#keySet documentation: