3 ms·
Final applies to the field, not the object. You can still mutate the object pointed at by a final field.
by UncleMeat 7y ago
Final applies to the field, not the object. You can still mutate the object pointed at by a final field.
- MaxBarraclough 7y agoSure, but the instance's only field, is final. The static reference KNOWN_M is final, and the only field of the pointed-to instance, x, is also final.