Answers ( 2 )

  1. In Java, .class file gets executed by interpreter in JVM but as .class file is getting interpreted not compiled, it slows down the execution speed.

    So, JIT compiler is used in Java to compile .class file to make the execution faster.

    0 Comment Add Comment/ View
  2. Just in time compiler is a component of jre.

    It converts the bytecode into native machine language which makes java program run faster.

    It is unlike interpreter which reads code line by line and execute.

    JIT compiler coverts the full bytecode into native machine language and the jvm then executes the whole code at once.

    0 Comment Add Comment/ View

Leave an answer

Logged in as