Do I need to synchronize access to immutable types in Java?
问题 Let's say I have this class: class Zoo { protected String bearName; protected Double trainerSalary; protected Integer monkeyCount; } Can one thread write to these fields, and another one read them, without requiring synchronized access to the Zoo object? Note: these values can be treated separate from one another, so it doesn't matter that the trainerSalary is changed while the monkeyCount is read. EDIT : Just to clarify, the fields are mutable ; only their referenced objects are immutable .