Myths about FileName Should be Same as Class Name in Java

This is very important session for us to know about myth of File name in Java. When I started to learn Java I got that every book, resources and even most of web blogs stated that we should keep the “name of Java file as the name of class.” I wonder why we should do it ? Why every one asking to follow the weird rule ? Why can’t we save java source file as other name (which is not matching with class name). Why everywhere it is written that FileName should be same as className. So my friends at the end of Read More …

Share Knowledge