Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jvm

 
c shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is an instance of jvm?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15748
74
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!