Hello Tim
"....Must a file always contain exactly one public class? Or put another way, can a file contain several classes and none of them be a public class? If so, what filename should be used? ..."
just small thing that Morris forgets, it's that when no class is public the file name should have the same name as the class that contains main method
example: that's compile and run fine if we put make it at Fethi.java
class Fethi extends Said
{
public static void main(
String arg[])
{
// Any Code
}
}
class Said{
void parler(){}
}
but if we call it Said.java, it still be legal, it compiles, but once run, it it throws NoSuchMethodError!
is it Ok?