Explain about JDK , JVM in Java

  jdk in java ,JRE and JVM

JRE:  Java Run time Environment ,It is used to provide run time environment. It is the implementation of JVM. It physically exists. It contains of set of libraries + other files.
JDK:  Java Development Kit it physically exists. It contains JRE+ development tools.

JVM :  Java virtual Machine it is a specification that provides run time environment.

JVM Performs the Loads code,Verifies Code,Executes Code.

Internal Architecutre of JVM
  1. Class Loader: class loader loads the class files.
  2. Class(Method) Area: This stores per class structures such as the run time constant pool field and method data the code for methods.
  3. Heap:It is the run time data area in which objects are allocated.
  4. Stack: Java Stack stores frames.It holds local variables and partial results.
  5. Program Counter Register(PC):It contains the address of the Java Virtual Machine instruction currently being executed.
  6. Native Method Stack:It contains the all the native methods.
  7. Execution Engine:  It contains  Virtual Processor, Interpreter,Just In Time Compiler(JIT)



SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment