What is JIT? Is it bundled with JDK? If so what is the role of interpreter(java)? plz explain in detail.

Showing Answers 1 - 17 of 17 Answers

Devidas Sonawane

  • Oct 21st, 2005
 

JIT is just-in-time. Yes JIT is bundled with JDK. Compiler converts .java file into .class file then interpreter reads bytecodes and that's why JIT.

  Was this answer useful?  Yes

kiran

  • Nov 8th, 2005
 

plz give me more detailed answer

  Was this answer useful?  Yes

shanthi

  • Nov 23rd, 2005
 

I am not getting the difference between JVM and JIT.

Plz clarify my doubt whether JIT is a compiler or Interpreter.

I read somewhere that JIT comes into picture in case of Applets that means it search for  starting point of excecution in Applets i.e. init() method.

  Was this answer useful?  Yes

Syed Fazal

  • Feb 6th, 2006
 

Java intepreter is used to convert java source code into bytecodes which can be easily understood by any JVM. JIT (a compiler) is used to covert the bytecodes into processor understandable format so that the program can be executed with faster speed.

  Was this answer useful?  Yes

Joseph Kiernan

  • Jul 27th, 2006
 

The question is obsolete. A JIT hasn't been shipped with Java this century.

  Was this answer useful?  Yes

 Javac is the java compiler which compiles the source code into byte code (generated class file)that is machine independednt. The java command which we run to execute the class is called java interpreter or “just in time” compiler. However, java can be used to compile and run programs when the -cs option is used. As each class file is loaded its modification date is compared to the modification date of the class source file. If the source has been modified more recently, it is recompiled and the new class file is loaded. java repeats this procedure until all the classes are correctly compiled and loaded.

  Was this answer useful?  Yes

Hi friend,

Even I know only some fact's but i think these are use full for you.

JIT (Just in time compiler) is basically a part of INTERPRETER.

it's mainly used in electronic gadget like mobile, advance calculator etc.

its not bundled with JDK. You can also download it from sun site.

The use of JIT is that is come down the execution time and it directly
implemented at hardware so it's very usefull.

It's about which i know about JIT.

  Was this answer useful?  Yes

sampra

  • Feb 22nd, 2008
 

JIT is just-in-time. Yes JIT is bundled with JDK. Compiler converts .java file into .class file then interpreter reads bytecodes and that's why JIT.

its similar to interpreator but it is faster thn interpreator  

  Was this answer useful?  Yes

phanikhk

  • Apr 9th, 2008
 

In a bytecode-compiled system, source code is translated to an intermediate representation known as bytecode. Bytecode is not the machine code for any particular computer, and may be portable among computer architectures. The bytecode may then be interpreted, or run, on a virtual machine. A just-in-time compiler can be used as a way to speed up execution of bytecode. At the time the bytecode is run, the just-in-time compiler will compile some or all of it to native machine code for better performance. This can be done per-file, per-function or even on any arbitrary code fragment; the code can be compiled when it is about to be executed.

In simple words the goal of using JIT techniques is to reach performance of static compilation, while maintaining the advantages of bytecode interpretation.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions