I am posting this questions on this list for a quick answer, plus this
mailing list more techinical than others.
Question
If i have two static member variable in a class and a static code block to
intialise the variables. I want to know exactly when the static code block
will be run. Ok the quick answer is when the JVM loads the class into
memory, but what i want to know is when does the JVM load the class into
memory.
is it only the first time a static method on the class is called. ( eg
MyClass.callStaticMethod() )
or can you use Class.forname("MyClass");
I want the static block of code to have already run before any of the static
methods are called, how can i force this.
cheers
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".