If I decide to use a non-thread-safe collection and synchronize its access, do I need to synchronize any mutation in the constructor? For example in the following code, I understand the reference to the list will be visible to all threads post-construction because it is final. But I don’t know if this constitutes safe publication […]
The post Java: Does mutation of an non-thread-safe collection in a constructor need to be synchronized? appeared first on BlogoSfera.