C# Programming - .NET Framework - Discussion

Discussion Forum : .NET Framework - General Questions (Q.No. 19)
19.
Which of the following statements are correct about JIT?
  1. JIT compiler compiles instructions into machine code at run time.
  2. The code compiler by the JIT compiler runs under CLR.
  3. The instructions compiled by JIT compilers are written in native code.
  4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
  5. The method is JIT compiled even if it is not called
1, 2, 3
2, 4
3, 4, 5
1, 2
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
14 comments Page 1 of 2.

Venkatesh said:   1 decade ago
Can any one explain why this option is not correct "The instructions compiled by JIT compilers are written in Intermediate Language (IL) code".

Ashutosh said:   1 decade ago
I agree with Venkatesh, Even the option 4 is correct apart from 1,2,3

Rahul said:   1 decade ago
JIT only convert the IL code to native code. not vice versa. IL produce by clr. IL code produce from source code which we written

Preethi said:   1 decade ago
Can anyone explain me how the third option is correct here?

Mehul said:   1 decade ago
@Ashutosh.
Only either 3 or 4 can be correct they both together can't be correct.

Sandy said:   1 decade ago
Option 3 is wrong and option 4 is correct.. 100% sure.
So the correct options overhere are: 1, 2, & 4

Tejas said:   1 decade ago
Agree with Sandy. JIT compiles IL code, and not native code. The code JIT compiles to is native code.

Arun said:   1 decade ago
MSIL code is given input to the CLR. JIT compiles MSIL code.

Sanjay sahu said:   1 decade ago
Option 3 is correct. Because JIT is a part of CLR(VES) which converts IL code into machine code gradually during execution of program.

A machine code is also known as native code. So option 4 is wrong.

Thi said:   1 decade ago
JIT converts MSIL into machine language.


Post your comments here:

Your comments will be displayed after verification.