Java File Names
Source code files must have the ".java" extension. The file name should match the class name. This naming convention is enforced by most reasonable compilers.
Thus, an improperly named java file, saved as "myTest.java":
Compiled byte code has the