How are commas used in the initialization and iteration
parts of a for statement?

Answers were Sorted based on User's Feedback



How are commas used in the initialization and iteration parts of a for statement?..

Answer / ravikiran(aptech mumbai)

for(int a=1,b=1;a<15&&b<20;i++,j++)

Is This Answer Correct ?    3 Yes 0 No

How are commas used in the initialization and iteration parts of a for statement?..

Answer / niranjanravi

Commas are used to separate the initialization and
iteration parts in the for statement.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

java program with complete 4 oops concepts implemented example

0 Answers   Infosys, NIIT,


how can you catch multiple exceptions in java?

0 Answers   Cyient,


Is java hashset ordered?

0 Answers  


Differentiate between stringbuffer and string?

0 Answers  


how to run servlet program between two computer through the internet ?

2 Answers   Kiran Prakashan, TCS,






Why spring singleton is not thread safe?

0 Answers  


What are inner classes or non static nested classes in java?

0 Answers  


When does the compiler supply a default constructor for a class?

9 Answers   TCS,


What is communist flag?

0 Answers  


explain System.out.println

107 Answers   Calpine Technologies, Care, Cognizant, CTS, IBM, IBS, LibSys, Oracle, Spiro Solutions, TCS,


What is function declaration?

0 Answers  


What are the advantages of exception handling?

0 Answers  


Categories