We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 1
619128, 7:15 AM. 11-May-2022 part 2.png
Understanding VM:
Q What happens internally if'we are compiling and running a Java program?
Ans) Whenever we are compiling the java program with the help of the command, Java compiler will
ler success
check weather we have written the code accoring to the java language syntax or not. ‘compilation java
compiler is going to generate a .lass file which consists of BYTE CODE instructions which are understandable only by the
‘machine. In our scenerio that machine is JVM. Inorder to run the generated class file we need to provide it as an input to
the JVM with the help of the command java Generated.classFileName| JVM is going to check weather all the byte code
instructions are correct or not if they are correct we will be getting our output if they are wrong we will getting an error.
-nps:iflassroom google.com/eINDKONT&zMze20DIW?pli=t uw