Apart from the above-mentioned signature of main, you could use public static void main(String args[]) or public static void main(String… args) to call the main function in Java . The main method is called if its formal parameter matches that of an array of Strings.
Read moreWhat is the shortcut for public static void main in IntelliJ?
In IDEA, you can type psvm and press Tab to generate the public static void main(String[] args) automatically.12 Nis 2018
Read moreCan I write it as public static void main String [] args?
Java main method is the entry point of any java program. Its syntax is always public static void main (String[] args) . You can only change the name of String array argument, for example you can change args to myStringArgs . Also String array argument can be written as String…
Read more