+ 2

[DUPLICATE] (String[] args)and(String args[])

Is there same? I find two in main method

27th Jan 2018, 2:01 PM
ć‰ćŽŸéš†ć€«
ć‰ćŽŸéš†ć€« - avatar
4 Answers
+ 20
Same. Java arrays can be written as both ways. https://www.javatpoint.com/array-in-java
27th Jan 2018, 2:03 PM
Nithiwat
Nithiwat - avatar
+ 13
In terms of a single array declaration, no difference. But: int[] foo, bar; // 2 arrays int foo[], bar; // foo is int array, bar is int https://www.sololearn.com/Discuss/730282/?ref=app
27th Jan 2018, 2:08 PM
Hatsy Rei
Hatsy Rei - avatar
27th Jan 2018, 2:09 PM
Dev
Dev - avatar
+ 2
Thank you all. It is difficult for me arrangement of method and others
28th Jan 2018, 12:11 AM
ć‰ćŽŸéš†ć€«
ć‰ćŽŸéš†ć€« - avatar