Difference Between Compiler and Interpreter and Difference between JDK, JRE and J VM

Difference Between Compiler And Interpreter 

A compiler takes entire program and converts it into object code which is typically stored in a file. The object code is also refereed as binary code and can be directly executed by the machine after linking.

An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code.



Difference Between Java Development Kit(JDK), Java Run Time Environment(JRE) And Java Virtual Machine(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 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 plus other files that JVM uses at runtime.

JDK is an acronym for Java Development Kit.It physically exists.It contains JRE + development tools.


Comments

Popular posts from this blog

Constant in Java

Java History, Features and Application types