0
Did the name of the source file(.Java) and class name of the program should be same in all cases?
2 odpowiedzi
0
no it's not necessary suppose your file name is avi.java and class name is hello then while compiling you will have to write javac avi.java when compiled successfully you have to execute by writing Java hello.
0
according to coding standard you should use the same name as that of file name so that other people can also understand by merely looking at the code.