Internal Detail or Working of Java Program
Internal Detail or Working of Java Program
Advertisement
https://www.javatpoint.com/internal-details-of-hello-java-program 2/7
7/20/23, 11:10 PM Internal Detail or working of Java Program - javatpoint
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:
Advertisement
To compile:
javac Hard.java
https://www.javatpoint.com/internal-details-of-hello-java-program 3/7
7/20/23, 11:10 PM Internal Detail or working of Java Program - javatpoint
To execute:
java Simple
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.
← Prev Next →
Feedback Advertisement
https://www.javatpoint.com/internal-details-of-hello-java-program 4/7