Internal Details of Java Program

In the previous page, we have learned about the first program, how to compile and how to run the first java program. Here, we are going to learn, what happens while compiling and running the java program. Moreover, we will see some question based on the first program.

Compile time

Runtime

★ Can you save a java source file by other name than the class name?

★ Can you have multiple classes in a java source file?