You must have to understand difference between jdk vs jre vs jvm before learning java programming. All these three are related to each other but their tasks are different. Let's try to understand some basic points about JDK, JRE and JVM so that you can differentiate them easily.
JDK
JDK
- JDK is full featured software development kit for Java which includes JRE and tools (such as the compilers and debuggers) to create and compile programs.
- It physically exists.
- JRE is Java Runtime Environment which contains set of libraries, the Java Virtual Machine, and other components that JVM uses on runtime to run applets and applications written in the Java programming language.
- It physically exists.
- JVM is Java Virtual Machine (an abstract computing machine) that run the Java bytecodes and convert in to machine specific code.
- They are available for many hardware and software platforms.
- Main tasks of JVM are loads code, verifies code, executes code and provides runtime environment.
- It will be created when you execute Java program by giving “java” command.
No comments:
Post a Comment