While practicing java code basics, I tried to name a class as _
. It compiled successfully but when I ran it, an exception occurred:
import static java.lang.System.*;
public class _ {
public static void main(String[] __A_V_) {
String $="";
for (int x=0; ++x < __A_V_.length; $ += __A_V_[x]){
out.println($);
}
}
Exception in thread "main" java.lang.NoClassDefFoundError: _ (wrong name: RnD/_)
Can someone clarify, why it compiled successfully but throws an exception at run time.