Java is a programming language and a platform.Here we are going to see the JVM,JDK,JRE.
Difference between JDK, JVM and JRE.These three are very important in Java.
Differences Between JDK,JVM and JRE
JVM
JVM - Java Virtual Machine is an abstract machine.It provides run time environment in which java bytecode can be executed. JVM is platform dependent.These are available for many software and hardware platforms because it is platform dependent.It performs the following tasks:
JRE - Java Runtime Environment.This is used to provide Runtime Environment.This is the implementation of JVM.It contains set of libraries and other files that JVM uses at runtime.
JDK
JDK - Java Development Kit.It physically exists.It contains JRE and development tools.
Difference between JDK, JVM and JRE.These three are very important in Java.
Differences Between JDK,JVM and JRE
JVM
JVM - Java Virtual Machine is an abstract machine.It provides run time environment in which java bytecode can be executed. JVM is platform dependent.These are available for many software and hardware platforms because it is platform dependent.It performs the following tasks:
- It Loads the code.
- It verifies the code.
- It executes the code.
- It provides run time environment.
JRE - Java Runtime Environment.This is used to provide Runtime Environment.This is the implementation of JVM.It contains set of libraries and other files that JVM uses at runtime.
JDK
JDK - Java Development Kit.It physically exists.It contains JRE and development tools.