This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Static variable in 2 different JVMs run in the same machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Static variable in 2 different JVMs run in the same machine" Watch "Static variable in 2 different JVMs run in the same machine" New topic
Author

Static variable in 2 different JVMs run in the same machine

Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
Hi guys, I have a little problem in keyword static. I now that there is only one static variable regardless how many objects I created. How about 2 different JVM that run in the same machine ?


thanks


Jeffry Kristianto Yanuar
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4167
    
  21

They will have separate instances. Memory won't be shared between JVMs


Steve
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
OK, thanks.

Jeffry Kristianto Yanuar
 
Consider Paul's rocket mass heater.
 
subject: Static variable in 2 different JVMs run in the same machine
 
Similar Threads
i have question in Thread.. plz help me
doubts about static variables
Managed server
Two or more JVM in a single machine
How 2 jboss communicate with each other ?