Thursday 24 September 2015

JDK vs JRE vs JVM

JDK (Java Development Kit)
It contains everything that will be required to develop and run any Java Application.

JRE (Java Run time Environment)
It contains everything required to run any Java Application which is already compiled. It doesn’t contain library which is required to develope java application.

JVM (Java Virtual Machine)
It is a virtual machine which work over your operating system to provide proper environment for your compiled Java code. JVM only works with bytecode. Hence you need to compile your java application(.java) so that it can be converted to bytecode format (.class file). Which then will be used by JVM to run application. JVM only provide environment it needs other library to run application properly.



No comments:

Post a Comment