parshad doshi


{ City } ahmedabad
< Country > india
* Profession * faculty
User No # 115937
Total Questions Posted # 1
Total Answers Posted # 1

Total Answers Posted for My Questions # 1
Total Views for My Questions # 1668

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 1
Questions / { parshad doshi }
Questions Answers Category Views Company eMail

In Java what is the difference between following two statements ? int a[],b; int []a,b;

1 Programming Languages AllOther 1668




Answers / { parshad doshi }

Question { 1668 }

In Java what is the difference between following two statements ?
int a[],b;
int []a,b;


Answer

Here First statement indicates that a is an array of type int and b is a simple integer type variable.
Second statement says that whatever follows by [] will be treated as an array. So a and b is declared as an array of type int.

Is This Answer Correct ?    0 Yes 1 No