I am creating one class with name as String.
public static void main(String args)
When i am compiling that is giving the following error.
Exception in thread "main" java.lang.NoSuchMethodError: main
Can you provide me the cause why this error is coming for String only?
But if we are giving the class name Integer,Float, etc any other object it is compiling and running fine.