Originally posted by Tony Smith:
"A static variable in an class gets lobbed into a shared part of the JVM?"
Originally posted by Tony Smith:
Is this because I started a new JVM whic blows away everything
...if two different ClassLoader instances both load the same ... Foo.class in the same JVM, and Foo.class defines a static variable S, then that JVM contains two different variables named "Foo.S", one for each ClassLoader.
Originally posted by Tony Smith:
And of course, now I ask, when I refer to Foo.S, which class reference is used?
Danger, 10,000 volts, very electic .... tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
|