My question is what is JIT and how it is switched off? Is there any relationship between JIT and valatile modifier?
Joined: Jun 23, 2005
JIT is Just In Time compiler. it is an enhanced version of the compiler. and cant be switched off. and also the work of this JIT is to compile and execute instead of interpreting which is done by java(interpreter). but this is not a full complete compiler. verify sun toturial for more details and also verify JVM specification book.
Joined: Aug 26, 2005
The JIT(Just In time compiler) is a mix of an interpreter and a compiler... the interpreter translates a line at a time and executes the line.. and hence is slow when compared to the compiler that compiles the entire program and then executes it.. the just in time compiler compiles class files to native obj code at runtime... but not line at a time...