And does it apply on input parameters as well? For example, if I have
something like that:
public static void modifyHashMap(HashMap map)
{
map.clear();
map.put("key", "value");
}
Is it still thread safe or not? I mean, if more threads call this
method concurently, will each of them modify its own map?