final variables
Thursday, August 20, 2009
The final keyword applied to a variable makes it impossible to reinitialize a variable once it has been assigned a value. For primitives, this means the value may not be altered once it is initialized. For objects, the data within the object may be modified, but the reference variable may not be changed to reference a different object or null.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment