4 ms·
It's a poor substitute for C++'s const though - at least that lets you reason about the state of an object. Java's final keyword just stops you reassigning a r
by jefffoster 17y ago
It's a poor substitute for C++'s const though - at least that lets you reason about the state of an object. Java's final keyword just stops you reassigning a reference - how many times do you inadvertently do that?