This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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: