i know that, in java main method is called by JVM as thread.
but when i mentioned main method in a progrme, like below, it successfully run:
public static void main(String... args)
instead of String, is it acceptable ?
what is the differencr between (String... s) and (String args) ?
please give answer ,
thanks in advance .
Finally, after completion of the initialization for class Test (during which other consequential loading, linking, and initializing may have occurred), the method main of Test is invoked.
The method main must be declared public, static, and void. It must specify a formal parameter (§8.4.1) whose declared type is array of String. Therefore, either of the following declarations is acceptable: