What happens if String args[] is not written in main( ) method ?

When main( ) method is written without String args[] as:

Public static void main( )

The code will compile but JVM cannot run the code because it cannot recognize the main( ) as the method from were it should start execution of the Java program. Remember JVM always looks for main( ) method with string type array as parameter.