Results 1 to 2 of 2
Thread: Const vs Final Variable
- 12-09-2011, 07:19 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 27
- Rep Power
- 0
- 12-09-2011, 07:33 PM #2
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 10
Re: Const vs Final Variable
Final primitive types cannot have their values changed throughout the execution of the program. final objects cannot be reassigned to another object. final classes cannot be subclassed and final methods cannot be overridden by subclasses.
The const in Java is just a reserved keyword.
Similar Threads
-
Assign a value to a final variable
By yma16 in forum New To JavaReplies: 6Last Post: 05-08-2011, 05:27 AM -
Final variable-constructor method.
By D4rkNrG in forum New To JavaReplies: 9Last Post: 10-13-2010, 12:18 PM -
about Final variable
By Ramanjaneyulu in forum Advanced JavaReplies: 6Last Post: 08-17-2010, 10:49 AM -
local variable tf1 is accessed from within inner class; needs to be declared final
By shoeb83 in forum New To JavaReplies: 2Last Post: 12-05-2009, 12:24 PM -
[SOLVED] is final class members are also final ?
By haoberoi in forum New To JavaReplies: 4Last Post: 11-10-2008, 04:01 PM
Bookmarks