GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Can we create 2 or more JVM's in a Single Computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Can we create 2 or more JVM Watch "Can we create 2 or more JVM New topic
Author

Can we create 2 or more JVM's in a Single Computer

jami siva
Ranch Hand

Joined: Oct 16, 2009
Posts: 63
Hi,

Can any one provide me answer with explanation for these Questions

1) . Can we create 2 or more JVM's in a Single Computer

2 ). How do initializes size of Stack.


Thanks

Siva
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

1) . Can we create 2 or more JVM's in a Single Computer

Yes. When you run a java program with "java <ClassName>" you start a new JVM.
2 ). How do initializes size of Stack.

You can change the memory allocated for the JVM by using the VM options.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

It is like running two different programs with their own heaps and stacks.


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
 
GeeCON Prague 2014
 
subject: Can we create 2 or more JVM's in a Single Computer