File name matching class name
Is it necessary that class name should match the file name as stated in the tutorial. It seems to work even when the file name does not match the class name.
I think it is required only for public classes.
I could even define multiple classes in a single file also, none of those was public class and so did no find any problem while compiling and got the class files created for each of the class definition in a single java file.
Java First-Java-Program 02-03 min 10-20 sec