• Post Reply Bookmark Topic Watch Topic
  • New Topic

JRE and JVM  RSS feed

 
abhijeet kush
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we say that JVM is an instance of JRE??please explain its so confusing..
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37474
539
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhijeet ,
Welcome to CodeRanch!

This question comes up periodically because it is one that beginners often have. I like the explanation in this post.
 
abhijeet kush
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Abhijeet ,
Welcome to CodeRanch!

This question comes up periodically because it is one that beginners often have. I like the explanation in this post.




thanks for the link it helped me alot but it would be more helpful if you could tell me whether JVM can be called an instance of JRE or not
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the JVM is not "an instance of" the JRE. The JVM is part of the JRE.

You can compare it to a car. A car has an engine, which is the central part that makes the car run.

The JRE (Java Runtime Environment) is the car, and the JVM (Java Virtual Machine) is the engine.

The JVM is the central part that understands and that runs Java byte code. But to get anywhere, you need more than just an engine. You need an environment, consisting of the standard classes etc.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!