Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.

0 Answers  


what is the difference between conversion and interface in bdc?

1 Answers  


what is the similarity between networking devices?

0 Answers   Cygnus, Infosys,


Suppose i have all the implementation code required is written in doGet() but my class has doPost() method. i need code implemented in doGet() how can we do that?

1 Answers  


what do you meant by Platform-Independent in Java?

6 Answers   Persistent,


Do not use more than 3 nested IF. Use Evaluate statement in case of more IF required. Please give a detail explantion besides readability and clarity for Evaluate stmt.

0 Answers  


Plz sent me in .net 2.0 interview Question & answers?

0 Answers  


Building Quotation engine program

5 Answers   Wipro,


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

3 Answers  


write a program for finding the union of two integer array in java?

2 Answers  


1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?

0 Answers   Steria,


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

0 Answers  


Categories