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

What is byte code and why is it important to java’s use for internet programming?

0 Answers  


Is char * a string?

0 Answers  


What is static variable with example?

0 Answers  


Explain features of interfaces in java?

0 Answers  


What is the difference between the boolean & operator and the && operator in java programming?

0 Answers  


Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding .........

2 Answers   Honeywell,


What is protected in java?

0 Answers  


Is string pool garbage collected?

0 Answers  


What is array sorting in java?

0 Answers  


Difference between an argument and a parameter?

10 Answers   Accounting, HCL, IBM, Quinnox,


java is puerly object oriented or not ?

5 Answers  


Is java map thread safe?

0 Answers  


Categories