I have created my own
String class in java.lang package.
I expected the compiler to generate an error but it compiled fine.
But when I try to run it, I get the following error.
Exception in
thread "main" java.lang.NoSuchMethodError: main
Why is it so? Why does it compile and why doesn't it run?
Thanks