+ 1
[DUPLICATE] What is the differnce between String [ ] args and String args[ ]
java basics
4 Answers
+ 9
There's no difference, these are just two different ways to express the same thing.
+ 7
Then please post the complete method definition which doesn't run...
+ 1
Tashi N
is right..
if you define an array.
there is no different...
whether you define in
public static void main(String...a)
or
public static void main(String [] a)
or
public static void main(String a[])
or
you want to define at array as a variable ..
In my every code of java..
i define like this..
public static void main(String... a)
- 3
no there is some difference
sometimes while programming i see the program runs but says cannot find main method and it doesn't execute the program