Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27681
| From | Mike Amling <mamling@chaff.us> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: praise |
| Date | 2014-03-04 13:06 -0600 |
| Message-ID | <bnmmbqF9ugmU1@mid.individual.net> (permalink) |
| References | <praise-20140225152547@ram.dialup.fu-berlin.de> <b19ab8ff-6c01-4435-a38e-ab2b92dd584d@googlegroups.com> <lejdhe$9m5$1@dont-email.me> |
On 2/25/14 6:46 PM, markspace wrote:
> It would be an interesting experiment to try to write some code to
> reproduce the case where a ctor is called before its initialization.
class Foo {
static Foo baz=new Foo();
static Object what=new Object();
Foo() {
System.out.println(what);
}
}
It's easy enough to run a constructor before class initialization is
complete. Offhand, I don't see how one would run a constructor before
class initialization begins.
Mike Amling
--
"We will bury you." -Nikita Kruschev
Nikita Kruschev is buried at Novodevichy Cemetery, Moscow.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: praise Lew <lewbloch@gmail.com> - 2014-02-25 15:01 -0800
Re: praise markspace <markspace@nospam.nospam> - 2014-02-25 16:46 -0800
Re: praise Mike Amling <mamling@chaff.us> - 2014-03-04 13:06 -0600
csiph-web