|
Subject:
|
Blank Final
|
|
Posted By:
|
Consigliori
|
Post Date:
|
9/8/2006 5:22:51 AM
|
Hi. I know that if i have a blank final in a class i can initialize it in the constructor method. But can I initialize a blank final variable in some other place with à specific value in time of compilation.
|
|
Reply By:
|
ciderpunx
|
Reply Date:
|
9/27/2006 9:25:29 AM
|
No - then you couldn't guarentee them being initialised before use. cf:
http://www.codeguru.com/java/tij/tij0071.shtml
-- Don't Stand on your head - you'll get footprints in your hair http://charlieharvey.org.uk http://charlieharvey.com
|