main() method 01-09-2014, 09:45 PM
#1
Hello, I have started to program in Java and enjoy it. I Have a quick question i will ask.
Something I notice is that people put "[]" in different place in the main () method, for example:
"public static void main (Strings[] args) {". (Without quotes)
The question is: What happens if you move the "[]" in main () method, for example at the left of args?
Like this:
"public static void main (String args []) {" (Without quotes)
Does it make any difference?
Appreciate your response!
Something I notice is that people put "[]" in different place in the main () method, for example:
"public static void main (Strings[] args) {". (Without quotes)
The question is: What happens if you move the "[]" in main () method, for example at the left of args?
Like this:
"public static void main (String args []) {" (Without quotes)
Does it make any difference?
Appreciate your response!

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)



