What happens if you compile an empty java file?
java
Solution
`javac` starts, sees there is no class declared in the file, and finishes. In order for a `.class` file to be created you must at least have the class declaration in the file.
Problem
When I compiled an empty Java file it didn't produce any class file. So I want to know how compiler react when compiling an empty Java file? I thought it should generate an empty class file in this case, but it did not. So why it didn't?