Two Laptop Bag
The moose likes Java in General and the fly likes jvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "jvm" Watch "jvm" New topic


c shah

Joined: May 12, 2011
Posts: 10
what is an instance of jvm?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14917

The JVM is the Java Virtual Machine.

When you start a Java program, you start up a new JVM. When you start up a second Java program while the other one is still running, you will have two JVMs running. The word "instance" is just an English word that refers to the actual copies of the JVM that are running. So, when you start up two Java programs, you'll have two instances of the JVM running.

This word is also used to indicate the relationship between classes and objects. An object is an instance of a class. In other words, a class is the plan that tells what objects of that class should look like, and you can make concrete instances of the class (objects).

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
subject: jvm
It's not a secret anymore!