> Sorry, I haven't been reading any book on Java lately for paucity of
> time. Please educate me on this simple issue. What's this construct?
[quoted text clipped - 10 lines]
> static, as in class specific rather than instance specific, but I am
> not sure. Secondly, what is the implication of having such a construct?
It lets you do things like this:
class MyStatics {
public static final int MY_VALUE;
static {
MY_VALUE = 3;
}
}
Its called static initializers, and what that means is that this is
code that is executed when the class is loaded.
Hope this helps,
Daniel.
Sathyaish - 13 Mar 2007 12:21 GMT
Thanks very much, Daniel.