4 ms·
Maybe i'm just weird, but to me, when i hear the word "constant" i expect something that is nailed down at compile time. final int chosenByFairDiceRoll = 4;
by usrusr 11y ago
Maybe i'm just weird, but to me, when i hear the word "constant" i expect something that is nailed down at compile time.
final int chosenByFairDiceRoll = 4; // a constant
final long millis = System.currentTimeMillis(); // not a constant
When you say "values are something else", is it that you would consider chosenByFairDiceRoll a value, but not millis? I guess that you might have had more exposure to languages that use "const" instead of "final" than me...