Internal Details of Hello Java Program
Internal Details of Hello Java Program
Posted by Nishanth Singamala
- Internal Details of Hello Java
What happens at compile time?
| At compile time, java file is compiled by Java Compiler (It does not interact with OS) and converts the java code into byte-code. |
What happens at runtime?
| At runtime, following steps are performed: |
| Classloader: is the subsystem of JVM that is used to load class files. |
| Bytecode Verifier: checks the code fragments for illegal code that can violate accesss right to objects. |
| Interpreter: read bytecode stream then execute the instructions. |
Q)Can you save a java source file by other name than the class name?
| Yes, like the figure given below illustrates: |
| To compile: | javac Hard.java |
| To execute: | java Simple |
Q)Can you have multiple classes in a java source file?
| Yes, like the figure given below illustrates: |


I am Nishanth Singamala, a Software Engineer from India. 
0 comments:
Comment here / Ask your Query !!