The moose likes Beginning Java and the fly likes Query on JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Query on JVM" Watch "Query on JVM" New topic

Query on JVM

Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
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

Joined: Jul 08, 2003
Posts: 24193


Moving to Java in General(Beginner).

[Jess in Action][AskingGoodQuestions]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058
Each time you type
java ClassName
you start a new JVM.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
Is it a new JVM or a new instance of the same JVM?
Hentay Duke
Ranch Hand

Joined: Oct 27, 2004
Posts: 198
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.
I agree. Here's the link:
subject: Query on JVM
It's not a secret anymore!