I have a below code ..
I have given the file name as SourceFileRulesDiffName.java.
It is compiling properly but while running it is throwing class not found exception...
As per the rule
Files with No public classes can have a name that does not match any of the classes in the file