A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Programmer Certification (SCJP/OCPJP)
why should the class name and the notepad name should be same?
Joined: Apr 13, 2006
Nov 22, 2006 04:20:00
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?
Joined: Dec 12, 2005
Nov 22, 2006 04:22:00
File name (system file) should match public class name.
I agree. Here's the link:
subject: why should the class name and the notepad name should be same?
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 ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014