Originally posted by Joel McNary:
I'm not sue I understand the question, but separate JVMs do not share the same memory space. Thus, the values of the variables are independent. Try the following:
Run this class as : java HelloWorld
Then, while it's sleeping (it's sleep for an hour -- you'll have the time), launch another: java HelloWorld Print
You will get "Hello, World" printed, even though the first program set it to "Bonjour, Monde" -- the variables are separate.