In Java, when you add the final modifier to a variable, that variable becomes a 'constant that cannot be reassigned'. However, there is a major trap of misunderstanding lurking here. In fact, 'just ...
It does not give semantic immutability. Java final only freezes bindings, not meanings. https://lnkd.in/gG47-g27 Therefore, correctness must be enforced by the Registry/kernel invariant, not by Java ...