3 ms·
I agree. The Java memory model explicitly stated that final fields will be correctly initialized in any object reference visible from another thread, provided a
by mmastrac 9y ago
I agree. The Java memory model explicitly stated that final fields will be correctly initialized in any object reference visible from another thread, provided a reference to that object is only stored after the constructor completes.