I am newbie In Java programming language. There are various tutorials for beginners about Java basics. I saw some of them there public static void main(String[] args)
function and the same time i have seen public static void main(String args[])
function. What is difference between public static void main(String[] args) and public static void main(String args[])?
Thanks in advance
Asked
Active
Viewed 2,045 times
-3

Azer Qurbanov
- 61
- 8
-
1Another dupe: [Java Array Declaration Bracket Placement](http://stackoverflow.com/questions/1103666/java-array-declaration-bracket-placement). – rgettman Feb 11 '16 at 18:46
-
Thank you very much. really duplicated – Azer Qurbanov Feb 11 '16 at 19:01
-
http://docs.oracle.com/javase/specs/jls/se8/html/jls-10.html#jls-10.2 – Pshemo Feb 11 '16 at 19:47
1 Answers
0
They will both function the same. There is no difference between the two, aside from personal preference.

Cowthulhu
- 528
- 2
- 8
- 21