Whats the difference between following two array declaration
in JAVA
int a[]={1,2,3,4,5}
int []a={1,2,3,4,5}

Answers were Sorted based on User's Feedback



Whats the difference between following two array declaration in JAVA int a[]={1,2,3,4,5} int []a..

Answer / shaza

there is no different

Is This Answer Correct ?    1 Yes 0 No

Whats the difference between following two array declaration in JAVA int a[]={1,2,3,4,5} int []a..

Answer / siva

no difference

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Engineering AllOther Interview Questions

what is the difference between embedded system and PLC. Whether the micro controller accept future expansion of program?

0 Answers  


why we need embedded system

0 Answers  


How we calculate the recovery of steam as per coal in a boiler if we know the calorific value of coal?

0 Answers  


if the bit string 0111101111101111110 is bit stuffed,what is the output string?

3 Answers  


tcs aptitude questions

1 Answers   TCS,






What is JVM and its role? What is the feature of platform independency in Java? How does it differ from C++?

1 Answers   Impetus,


what we have to say about hobbies,strong points,weak points

0 Answers   Banking,


Is it VB.NET support operator overloading?

3 Answers   Zylog,


7)8 mark X Y Z X Y Z + A B - A B -------- --------- C D E F B G A find X,Y,Z,G (8marks)

0 Answers   Infosys,


Has anyone attended any interviews in IITs for the positions like Research Associates/Fellowships?

0 Answers  


Why should we use white box testing

0 Answers  


which is having more efficiency smaller power plant or bigger power plant? why?

1 Answers   L&T,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)