Content deleted Content added
m +link class |
m +link local variable |
||
Line 5:
A '''final [[Method (computer science)|method]]''' cannot be [[Method overriding (programming)|overridden]] by subclasses. This is done for reasons of efficiancy, since the method can then be placed [[Inline function|inline]] whereever it is called.
A '''final [[variable]]''' is a [[constant]]. It must be assigned a value at [[declaration]], and the variable can later be used but not assigned a new value. [[Local variable|Local variables]] (for example, variables in loops) cannot be declared final.
[[Category:Java programming language]]
|