main method is a standard method used by JVM to execute any java program(Java SE). - What are the possible main method declar

Q

main method is a standard method used by JVM to execute any java program(Java SE). - What are the possible main method declaration with String[] args?

✍: Guest

A

public static void main(String[] args){ }
public static void main(String []args){ }
public static void main(String args[] ){ }
public static void main(String... args){ }
Instead of args can place valid java identifier.

2015-07-01, 516👍, 0💬