Filename and ClassName,
November 30, 2009 at 12:20 PM
When the class is a public then filename has to be same as class name else class name can be a different if its a default(not public)class. (class can not be private or protected in java) -When file is compiled a class file is generated with filename.class and when u have to execute the program u should use classname i.e java classname
View All Comments
| View Tutorial