Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7436
| From | Jan Burse <janburse@fastmail.fm> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: method |
| Date | 2011-08-28 19:40 +0200 |
| Organization | albasani.net |
| Message-ID | <j3duj5$i4c$1@news.albasani.net> (permalink) |
| References | <8fe8db85-d553-4b7c-90a6-56b9b4b938d9@bl1g2000vbb.googlegroups.com> |
fattaneh schrieb: > hi everybody > is every body knows which method executes before main() and static() The static initializers are immediately called before the main() method is invoked for the first time. This might be long after the class has been loaded, and also by another thread than the thread that loaded the class. Accordingly to the JLS an eager calling of initializers is not allowed. This is in contrast to the linking of a class which can be done eager or lazy after the loading of the class and before its initialization. http://java.sun.com/docs/books/jls/third_edition/html/execution.html#12.4.1 Bye
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
method fattaneh <fattaneh.69@gmail.com> - 2011-08-28 08:03 -0700 Re: method Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-08-28 12:00 -0400 Re: method Jan Burse <janburse@fastmail.fm> - 2011-08-28 19:40 +0200 Re: method Roedy Green <see_website@mindprod.com.invalid> - 2011-08-31 14:12 -0700
csiph-web