If I pass a map over to a class I've made, if that class then modifies the map, would it change the map in the main method that passed it originally?
Does the second instance point to the same map?
If I pass a map over to a class I've made, if that class then modifies the map, would it change the map in the main method that passed it originally?
Does the second instance point to the same map?
Yes, the caller will see the changes that the callee makes.
Does the second instance point to the same map?
There is no second instance (unless you explicitly make a copy of the map). What you have is two references to the same instance.
Yes. Your original map reference (not a copy map object) is passed and any change made in the map in other class will reflect in the map in the main method as well.
Yes, you're passing a reference value.
It seems like this would be drop-dead simple to prove experimentally, no?
If the map is passed to any method, this method can change the content of the map, which is then visible for all, that acces the map. However that method can not change the map object itself, e.g by replacing the map with another one.