Hi,
Yes, I was wondering why that is assumed to be a rule in
Java. I still dont figured it out but I'm posting a tip i read from a java book.
"although only required for public classes," defining the same name as the file name "helps the compiler find NewClass, even if NewClass has not been compiled yet"
so my guess is maybe it has to do with the java compiler.
Can some java experts give more concrete reason behind it? just for the sake of curiosity..