|
Oh yes, I agree. private static final Foo instance = new Foo(); rules! Except where new Foo() could cause exceptions, then I would go for lazy initialization. That said, I would also prefer no Singletons at all .... Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz Mike Morris wrote: Dr Heinz M. Kabutz wrote: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~--- |
- [CTJUG Forum] Handling exceptions in a static initializ... Jeff Mutonho
- [CTJUG Forum] Re: Handling exceptions in a static ... McFinnigan
- [CTJUG Forum] Re: Handling exceptions in a static ... Bruce Stewart
- [CTJUG Forum] Re: Handling exceptions in a static ... Brian Silberbauer
- [CTJUG Forum] Re: Handling exceptions in a static ... Bobby Quinne
- [CTJUG Forum] Re: Handling exceptions in a static ... Dr Heinz M. Kabutz
- [CTJUG Forum] Re: Handling exceptions in a sta... Michael Wiles
- [CTJUG Forum] Re: Handling exceptions in a sta... Jason Morris
- [CTJUG Forum] Re: Handling exceptions in a... Dr Heinz M. Kabutz
- [CTJUG Forum] Re: Handling exceptions ... Mike Morris
- [CTJUG Forum] Re: Handling except... Dr Heinz M. Kabutz
- [CTJUG Forum] Re: Handling ex... Mike Morris
- [CTJUG Forum] Re: Handlin... Jeff Mutonho
- [CTJUG Forum] Re: Handlin... Jason Morris
