Originally posted by Henry Wong:
Interestingly, while the keySet() and entrySet() method do return a collection object, it is actually the same collection. Both of those methods return an instance of an inner class that accesses the Map data directly. It does not "send the key element to set variable", the "set" that is returned is just a different interface to the same collection.
Henry