Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
jami siva
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is like running two different programs with their own heaps and stacks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic