C
corejavagroups
In Java suppose we have a class with class name Example.
In the class we have written the main() method.
when saving the file that contains the source code of class Example
why should we give the name of the file as same as the name of the
class that is as Example.java ?
In the class we have written the main() method.
when saving the file that contains the source code of class Example
why should we give the name of the file as same as the name of the
class that is as Example.java ?