C
chirs
What is the rules/requirements to name a .java file. Are there some
books or online documents explain these? I only heard
1 If a file contains a class that has main(), the filename should be
that class name.
2 If it is an applet, the filename should be the (unique) public class
name.
Are they ture?
My next question is if a file has many classes and they do not have
main(), is there a rule to choose a filename? What are the rules for
other type of programs, such as JavaBeans and servlets
Thanks a lot
Chris
books or online documents explain these? I only heard
1 If a file contains a class that has main(), the filename should be
that class name.
2 If it is an applet, the filename should be the (unique) public class
name.
Are they ture?
My next question is if a file has many classes and they do not have
main(), is there a rule to choose a filename? What are the rules for
other type of programs, such as JavaBeans and servlets
Thanks a lot
Chris