Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Query on JVM  RSS feed

 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i download JDK on my standalone machine and run 2 seperate Hello World programs then whether they will run on seperate JVM's or both will run on the same JVM?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Separate.

Moving to Java in General(Beginner).
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each time you type
java ClassName
you start a new JVM.
 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it a new JVM or a new instance of the same JVM?
 
Hentay Duke
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many JVMs do you have installed on your machine? Generally it's just one and a new instance is created of it I believe. Someone here will correct me if I'm wrong.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!