JVM (Java Virtual Machine):
JVM is a virtual machine or a program that provides run-time environment in which java byte code can be executed. JVMs are available for many hardware and software platforms. The use of the same byte code for all JVMs on all platforms make java platform independent.
Main task of JVM:
- Search and locate the required files.
- Convert byte code into executable code.
- Allocate the memory into ram
- Execute the code.
- Delete the executable code.
JRE (Java RunTime Environment):
JVM + java runtime libraries + java package classes (e.g. util, lang etc). JRE provides class libraries and other supporting files with JVM. It not provide any development tool like compiler, debugger etc.
JDK (Java Development Kit):
JRE+ development tool (compiler, debugger etc.). JDK contains tools to develop the application and JRE to execute the application.
|Programming language overview.|
|Overview of Java.|
|JVM (java virtual machine) architecture details.|
|Difference between JVM, JRE and JDK.|
|Java Coding Guidelines.|