Explain the two compilation phases of Java programs.
What will be an ideal response?
The two compilation phases that Java programs typically go through include one in which source code is translated into bytecodes which are portable across JVMs and a second in which the bytecodes are translated into machine language for the actual computer on which the program executes. In early Java versions, the JVM was simply an interpreter for Java bytecodes. This caused most Java programs to execute slowly because the JVM would interpret and execute one bytecode at a time. Today’s JVMs typically execute bytecodes using a combination of interpretation and so-called just- in-time (JIT) compilation. In this process, The JVM analyzes the bytecodes as they are interpreted, searching for hot spots—parts of the bytecodes that execute frequent- ly. For these parts, a just-in-time (JIT) compiler—known as the Java HotSpot com- piler—translates the bytecodes into the underlying computer’s machine language. When the JVM encounters these compiled parts again, the faster machine-language code executes.
You might also like to view...
The horizontal axis is also known as the ________ axis
A) category B) value C) secondary D) primary
The ____ metacharacter modifier is used to search a string for one or zero instances of a character in the preceding characters.
A. @ B. $ C. ? D. *
Which of the following would you enter in the shorthand text box to set the top and bottom margins at 5 and the left and right margins at 10?
A. 10 x 5 B. 5 x 10 C. 5 x 5 x 10 x 10 D. 10 x 5 10 x 5
Fill in the Missing Code.
```