JVM Architecture

 JVM Architecture


  • JVM is a virtual platform that resides on your RAM
  • Its component, Class loader loads the .class file into the RAM
  • The Byte code Verifier component in JVM checks if there are any access restriction violations in your code. (This is one of the principal reasons why java is secure)
  • Next, the Execution Engine component converts the Bytecode into executable machine code

  • Javac is Java Compiler -- Compiles your Java code into Bytecode

  • JVM is Java Virtual Machine -- Runs/ Interprets/ translates Bytecode into Native Machine Code

  • JIT is Just In Time Compiler -- Compiles the given bytecode instruction sequence to machine code at runtime before executing it natively. Its main purpose is to do heavy optimizations in performance.  It is used to increase the performance of interpreter.

  • Java Interpreter -- The main function of interpreter is to convert the bytecode instruction to machine code line by line at runtime, without changing the sequence.

Post a Comment

0 Comments