1.

What are the differences between JVM, JRE and JDK in Java?

Answer»
CriteriaJDK JREJVM
AbbreviationJava Development KitJava Runtime EnvironmentJava Virtual Machine
DefinitionJDK is a complete software development kit for DEVELOPING Java applications. It comprises JRE, JavaDoc, compiler, DEBUGGERS, etc.JRE is a software package providing Java class LIBRARIES, JVM and all the required components to RUN the Java applications.JVM is a platform-dependent, abstract machine comprising of 3 specifications - document describing the JVM implementation requirements, computer PROGRAM meeting the JVM requirements and instance object for executing the Java byte code and provide the runtime environment for execution.
Main PurposeJDK is mainly used for code development and execution.JRE is mainly used for environment creation to execute the code.JVM provides specifications for all the implementations to JRE.
Tools providedJDK provides tools like compiler, debuggers, etc for code developmentJRE provides libraries and classes required by JVM to run the program.JVM does not include any tools, but instead, it provides the specification for implementation.
SummaryJDK = (JRE) + Development toolsJRE = (JVM) + Libraries to execute the applicationJVM = Runtime environment to execute Java byte code.


Discussion

No Comment Found