0

Would someone be so kind and explain how (String[] args) differs from (String args []) ? Thanks for the help.

1st Apr 2016, 6:17 PM
Janey Howe
Janey Howe - avatar
5 odpowiedzi
+ 3
They do work the same way but the first is the one that is more preferred
26th Jun 2016, 5:33 PM
Evans Kipkemoi
Evans Kipkemoi - avatar
+ 2
Both could work, but the former is the more conventional form of presentation
2nd Apr 2016, 3:04 AM
TAN
+ 2
There is no difference. what one should appreciate is that the main method takes an array 'args' of String type as its arguement. Hence when you define the array square brackets can either be put in front of the Type[]or Variable[]. Thus it is a matter of preference.
30th Jun 2016, 4:02 PM
David Chikunguru
David Chikunguru - avatar
+ 1
there is no difference.....the first one is the programmatic prefered one....but u can even use the second one
9th Jul 2016, 8:28 PM
Jithin K C
Jithin K C - avatar
0
thank you
4th Jul 2016, 9:29 AM
‎‏‎‏‎Joe
‎‏‎‏‎Joe - avatar