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

In java without use of main() how to execute the program

0 Answers  


i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared

0 Answers   TCS,


Given a set. Write the pseudo code to get all the subsets for the given set. Eg. Input : {1,2} Output : (),(1),(2),(1,2)

0 Answers   Goldman Sachs,


what is fisrt female program

1 Answers  


Define Form modules, Class modules and Standard modules

0 Answers   Global Hunt,






What is good attributes of Programming language ?

6 Answers   GKN Land Systems,


19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.

0 Answers   Bajak Paint,


Can we write a method in JSP.If so how?

0 Answers   HCL,


How to convert numeric value into words in c#????plz suggest me the coding of this question???

1 Answers   NIIT,


sample code for data transfer between two r/2 systems and r/3 systems?

0 Answers  


Explain three modes in which files can be accessed from python program

0 Answers   Peerless,


What is nocopy in plsql?

1 Answers   IBA Health,


Categories