Reputation: 1655
JVM is an implementation of JRE. So every device which has JVM will contain JRE right?
JDK contains Set of classes and Libraries which support Development. Does JRE contains the Same. If so why they need the same since we already have our code converted to byte code?
Please correct me if I am wrong
Upvotes: 5
Views: 545
Reputation: 12267
You have number 1 a little backward. The Java Runtime Environment (JRE) contains a Java Virtual Machine (JVM), along with the standard java libraries and other things which allow Java byte-code programs to run.
The JDK Java Development Kit is like a superset of the JRE. It has all the things a JRE has, but adds things like a compiler and debugger to allow you to not only run Java byte-code, but create it from Java source files.
Upvotes: 9