The Artima Developer Community
Sponsored Link

Java Answers Forum
Multiple Static Initialisers

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Multiple Static Initialisers Posted: Dec 22, 2004 1:24 AM
Reply to this message Reply
Advertisement
Is there ever a case for having multiple static initialisers in a Java class? I can't think of one.

I'm maintaining a class that opens with two of them (one of which fails without any indication, if the properties file does not contain the key/value pair it's looking for.) Hence my interest.

Also on this project is another class that contains two static initialisers at the top of the code and another near the end!

Vince.

Topic: looking for Software Developer for MAC Previous Topic   Next Topic Topic: reference equals null

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use