wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why should the class name and the notepad name should be same? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why should the class name and the notepad name should be same?" Watch "why should the class name and the notepad name should be same?" New topic
Author

why should the class name and the notepad name should be same?

NDP Prasad
Ranch Hand

Joined: Apr 13, 2006
Posts: 177
i want to know, why should the class name and the notepad name should be same?

What the jvm is doing with the x.class and the class name inside that?


SCJP,SCWCD<br />
hardikjava shah
Greenhorn

Joined: Dec 12, 2005
Posts: 13
File name (system file) should match public class name.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why should the class name and the notepad name should be same?
 
Similar Threads
public class
why public class should be stored in same filename as of class?
Name of java file with public class
Class and Java file
Why does java not allow multiple public classes in a java file ?