3 ms·
The fact that value on string is a final field is meant to give you a guarantee that it will have been initialised before any other thread can see the object (a
by aardvark179 9y ago
The fact that value on string is a final field is meant to give you a guarantee that it will have been initialised before any other thread can see the object (assuming the object does not leak itself deliberately in the constructor). This does not depend on the reference to the string itself being final.