Core Java 1) Basics of Java 3) Internal Details of Java Program
Core Java 1) Basics of Java 3) Internal Details of Java Program
Ltd
Affordable & Live Training
Address: P2 304, Pentagon Tower 2, Magarpatta City IT Park, Hadapsar, Pune 28, India. Contact:
8766016640 Email: [email protected] Website: www.puneripattern.com
At compile time, the Java file is compiled by Java Compiler (It does not interact with OS) and converts the Java code into bytecode.
Bytecode Verifier: Checks the code fragments for illegal code that can violate access rights to objects.
Q) Can you save a Java source file by another name than the class name?
Yes, if the class is not public. It is explained in the figure given below:
Observe that, we have compiled the code with file name but running the program with class name. Therefore, we can save a Java
program other than class name.