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

Go to topic 50296

Return to index page 163
Return to index page 162
Return to index page 161
Return to index page 160
Return to index page 159
Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155
Return to index page 154