The string[] parameter is used to save command line arguments with first being the class name. Moreover,if you call your main method without string[] it will simply be an overload and JVM will not be calling that method.And if you skip this signature main method JVM will throw an exception