It iterates over a java.util.HashMap$EntrySet object which represents a view into the original map which supports updates. The iterator behaves the same way.