aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes difference b/w  int[ ] a; and int a[ ]; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "difference b/w  int[ ] a; and int a[ ];" Watch "difference b/w  int[ ] a; and int a[ ];" New topic
Author

difference b/w int[ ] a; and int a[ ];

Hussain
Ranch Hand

Joined: Nov 22, 2001
Posts: 110
hi all ,,

quickly..
int i[],a,b,c;
a=1;//will compile as a is no a array bcoz int i[],a....
-----------------------------------------------------------------
int[] i,a,b,c;
a=1;//will not compile as a is an array their bcoz int[]i,a....

thankxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
------------------
Muhammad Hussain

Muhammad Hussain<br />Sun Certified Java Programer (SCJP2)<br />Sun Certified Web Component Devloper SCWCD
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hi Muhammad,
i liked it. i didn't know that
regards
maulin
Mr Iftikhar
Ranch Hand

Joined: Oct 12, 2001
Posts: 39
Nice difference muhammad.
Thanks.


java language
Mr Iftikhar
Ranch Hand

Joined: Oct 12, 2001
Posts: 39
Nice difference muhammad.
Thanks.
Fei Ng
Ranch Hand

Joined: Aug 26, 2000
Posts: 1242
int i[],a,b,c;
a=1;//will compile as a is no a array bcoz int i[],a....
a is int here.
int[] i,a,b,c;
a=1;//will not compile as a is an array their bcoz int[]i,a....
i,a,b,c are all int array.
int i[],a[],b[],c[];
I usually code like that. It is clear.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference b/w int[ ] a; and int a[ ];