Execution of Java program can take place in two ways that are as follows:
while on the other hand in Dynamic loading the block of code is loaded into the memory only when it needs to be executed.Java program execution follows Dynamic Loading.
The following steps are followed while executing Java program:
Java Virtual Machine also called as JVM would not convert all the statements of .class file into the executable code at a time.
Once the control comes out of method,then it is deleted from the RAM and another method of .exe type would be loaded .
Once the control comes out of main() method,it would be deleted from the RAM. That's the only reason we are not able to view the .exe contents of .class file.
- Static Loading and
- Dynamic Loading
while on the other hand in Dynamic loading the block of code is loaded into the memory only when it needs to be executed.Java program execution follows Dynamic Loading.
The following steps are followed while executing Java program:
Java Virtual Machine also called as JVM would not convert all the statements of .class file into the executable code at a time.
Once the control comes out of method,then it is deleted from the RAM and another method of .exe type would be loaded .
Once the control comes out of main() method,it would be deleted from the RAM. That's the only reason we are not able to view the .exe contents of .class file.
No comments:
Post a Comment