They both are same for compiler and runtime is just a readability
issue, int[] name is recommanded because it is more obvious you are
declaring an array.

On Jun 25, 1:39 pm, ρ Я д Ŧ έ e Қ ....Me |\|0T ThaT BaDD***
<[email protected]> wrote:
> > There are three syntax of defining arrays in java:
>
> 1. int num[]= new int[50];
> 2. int []num= new int[50];
> 3. int[] num=new int[50];
> 4. int[] num,name;
>
> 1 and 2 are same....just the syntax is different but the meaning is same.
> 3 is used to define multiple arrays simultaneously in java as shown in 4.
>
> hope you got the solution
>
> keep smiling :)
> yours
> PR
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to