Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2006, 05:22 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Consigliori Send a message via MSN to Consigliori
Default Blank Final

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.


 
Old September 27th, 2006, 09:25 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyword final Leville Java Basics 4 September 19th, 2008 09:35 PM
XML final output sanek55555 XSLT 8 November 2nd, 2006 04:12 AM
Blank Final Consigliori Java GUI 0 September 7th, 2006 01:57 PM
Final JT's dinner menu. czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 6 April 7th, 2005 09:20 AM
Difference between static and final ravikumar681 J2EE 2 June 24th, 2004 07:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.