"If there is no public class or interface defined within a source code file, then the file must take on a name that is different that its classes and interfaces."
However the fillowing code compiles and runs fine. Am I missing out something??
//File:: test.java
class
test {
public static void main (
String args[]){
System.out.println ("hello");
}
}