saving . . . saved File name matching class name has been deleted. File name matching class name has been hidden .
File name matching class name
Title
Question
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 29-01-19, 5:05 p.m. PravinJain

Answers:

Log-in to answer to this question.