Content deleted Content added
mNo edit summary |
|||
Line 27:
= Final variables =
A '''final [[variable]]''' is [[immutable]]. It can only be assigned to once, in the constructor of its class. (Note: If the variable is a reference, the object that it references is still mutable; but the variable cannot be re-bound to another object.)
Unlike the value of a [[constant]], the value of a final variable is not necessarily known at compile time.
|