Question

Why is a just-in-time compiler useful for executing Java programs?

Why is a just-in-time compiler useful for executing Java programs?

Homework Answers

Answer #1
JVM interprets the bytecode instructions one at a time. 
Usually interpreted environments are slower than running native binaries(C, C++), because interpretation process requires converting each instruction into native machine code, everytime the program runs.

so, Java uses a JIT(just-in-time) compiler to make this interpretation process faster)
A just-in-time (JIT) compiler compiles the bytecode for a method into native machine code the first time the method is encountered.
This means that the Java program is essentially running as a native application. 
 
so, A Java program that is run by a JIT rather than a traditional interpreter typically runs much faster.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Java programming. Fill the empty boxes with the Answer. 1) The Java compiler javac translates Java...
Java programming. Fill the empty boxes with the Answer. 1) The Java compiler javac translates Java source code into [Answer]. 2) In Java a class object can inherit the properties of a superclass by using the [Answer] keyword. 3) A(n) [Answer] method consists of the same method name but different number or types of parameters 4) In a class definition, the special method that is called to create an instance of that class is known as a/an [Answer] 5) The...
java: can anyone explain. why does my code print out ##### and ***** instead of just...
java: can anyone explain. why does my code print out ##### and ***** instead of just #####? int a=1, b=2, c=3;    if(a<b) System.out.println("####"); else System.out.println("&&&&"); System.out.println("****");
why might ARMA models be considered useful for financial time series?
why might ARMA models be considered useful for financial time series?
Question 1: A.   Why are interrupts given higher priority than the currently executing program? B.   Why...
Question 1: A.   Why are interrupts given higher priority than the currently executing program? B.   Why does an I/O instruction that is executed by your code result in a trap?
Does a customer order start the Just-in-time process? Why or Why not?
Does a customer order start the Just-in-time process? Why or Why not?
Are the concepts of lowest unit of measure and just in time the same? Why or...
Are the concepts of lowest unit of measure and just in time the same? Why or why not?
For testing bacterium’s response to a toxic substance, why would g(generation time, doubling time) be useful...
For testing bacterium’s response to a toxic substance, why would g(generation time, doubling time) be useful information? How does the biofilm growth mode differ from that of planktonic cells? Which growth mode better protects the bacterial cells from harm?
why are effective programs not always implemented?
why are effective programs not always implemented?
Explain why humans normally move in just one playing at a time
Explain why humans normally move in just one playing at a time
Create a JAVA program to display the numbers 1-10. Although you could program a solution that...
Create a JAVA program to display the numbers 1-10. Although you could program a solution that has ten lines of code like the following, think about why this would be a bad idea when developing a programming solution: Print 1 Print 2 Print 3 Print 4 (continued to Print 10) Note: Examples for Java programs (Loop and no loop) programs are in the "Important Documents" folder / Module 6.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT