Friday, 3 January 2014

Java Head to Toe

JDK (Java Development Kit)
Mainly targeted for java development. Java Developer Kit contains tools needed to develop the Java programs, and JRE to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc

JDK = JRE + Tools (javac,java etc)

JRE(Java Runtime Environment)
Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger

JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries

JVM(Java Virtual Machine)
JVM actually runs Java bytecode. JVM is platform dependent but it executes the Java in platform-independent way .It is also responsible for all the things like garbage collection, array bounds checking, etc.

JVM = JIT Compiler + Other Operations