+ 6

Java main method declaration

These three options are equivalent? public static void main(String[] args) {} public static void main(String args[]) {} public static void main(String...args) {}

20th Feb 2019, 11:49 AM
Андрей Чачин, Andrew Chachin
Андрей Чачин, Andrew Chachin - avatar
2 Antworten
+ 2
Try to change args to some other name and you will see that its only array declaration.
2nd Mar 2019, 8:34 AM
M_N
+ 1
you must try
26th Feb 2019, 10:09 AM
Narushipudenn
Narushipudenn - avatar