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



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

Answer / parshad.doshi

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

Post New Answer

More Programming Languages AllOther Interview Questions

What is a dialog based program

1 Answers  


Define distributed queries. can you explain me as soon as possible

0 Answers   HCL,


What is ur porject Architecture? If anyone ask what i have to specify here..

0 Answers  


I would like to know what is Intellimatch and some interview questions which could be asked related to Intellimatch.

3 Answers  


can we convert .class file to dll file

1 Answers  


How to update a data for the views in the relational data base schema

1 Answers   TCS,


what is runtime exception and compiletime exception ?

1 Answers   Accenture,


What is a PID? How is it useful when troubleshooting a system?

3 Answers  


which property is used to display the advertisements with adrotator control

0 Answers   Sonata,


Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe

0 Answers  


What is the Difference between in memory database and physical database

0 Answers  


1.Describe about your project?

1 Answers  


Categories