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 ur porject Architecture? If anyone ask what i have to specify here..

0 Answers  


what are the things i had to say in personal introduction in hr round mail me to prasanna.1867@rediff.com

0 Answers  


SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?

0 Answers   Symphony,


4.Write a program to get the string in array and print that? or Without using loop print the array.

3 Answers  


What is Partial class and its use?

1 Answers  






What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

2 Answers  


1) How can u create the table?

0 Answers   IBM,


why Java is not purely object oriented?

9 Answers   Persistent,


i want to insert textbox value to sql db. i have only one text box but store four values. ple give any one give sample code in asp.net c#..

1 Answers   Concentrix,


How to link calculator in oops concept? how is it working in oops concept? why dont u using in beginning of program 'z' in abap(sap)?

2 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,


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

0 Answers  


Categories