2 ms·
For me these are on two different levels. The guarantees about final fields being assigned exactly once, and the related thread-safety guarantees, are part of t
by layer8 4y ago
For me these are on two different levels. The guarantees about final fields being assigned exactly once, and the related thread-safety guarantees, are part of the soundness of the language. Late binding may fail and you'll get a NoSuchMethodError or similar, that's fine. But you won't get an Error thrown if suddenly your fields fail to initialize or your class stops being thread-safe just because the superclass implementation changed.