Interviews3 answers
What is the difference between JRE, JVM and JDK?
3 Answers
Jre - java run time environment in which java application runs.
Jdk- java development kit which is used to assemble program
Jvm- java virtual machine which run application
Mukesh KumarPosted Aug 29, 2017, 5:16 PM EDT
JVM : Java Virtual machine runs the byte code.......
JRE : Java Runtime Environment provides the libraries which are required by the JVM.......
JDK : Java Development Kit provides the development area to develop your application, it is the combination of JRE + compilers + debuggers.......
Saurabh SrivastavaPosted Jul 18, 2017, 10:49 PM EDT
JVM
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.
JVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent.
The JVM performs following main tasks:
Loads code
Verifies code
Executes code
Provides runtime environment
JRE
JRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It is the implementation of JVM.It physically exists.It contains set of libraries + other files that JVM uses at runtime.
Implementation of JVMs are also actively released by other companies besides Sun Micro Systems.
JDK
JDK is an acronym for Java Development Kit.It physically exists.It contains JRE + development tools.
Rahul VermaPosted Jul 5, 2016, 11:55 PM EDT
