aspose file tools*
The moose likes Beginning Java and the fly likes Core Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Core Java" Watch "Core Java" New topic
Author

Core Java

Niranjan Prasad
Ranch Hand

Joined: Aug 13, 2005
Posts: 62
What is the difference between JVM and JRE?
We all know that JVM is part of O/S.
Can we say that the JRE is superset of JVM.
Does JRE provide the all the in built classes required by the JVM?
Rajasekar Elango
Ranch Hand

Joined: Sep 13, 2004
Posts: 105
Niranjan,

This has been answered many times. Please search the forum..

Regards,
E. Rajasekar.


SCJP 1.4
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14274
    
  21

> What is the difference between JVM and JRE?

The JVM is the Java Virtual Machine, the JRE is the Java Runtime Environment, which includes the JVM and everything around it that you need to run Java programs.

You can compare it with the following: the JVM is the engine, and the JRE is a complete car. To be able to drive somewhere, you need the complete car, not just the engine.

> We all know that JVM is part of O/S.

No, the JVM is not part of the operating system.

> Can we say that the JRE is superset of JVM.

See above.

> Does JRE provide the all the in built classes required by the JVM?

Yes.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Core Java