3 ms·
Exactly. Relevant passage from ^ An object is considered to be completely initialized when its constructor finishes. A thread that can only see a refe
by alkonaut 9y ago
Exactly. Relevant passage from ^
An object is considered to be completely initialized when its constructor finishes.
A thread that can only see a reference to an object after that object has been completely
initialized is guaranteed to see the correctly initialized values for that object's final fields.