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

explain Anonynous inner class?

6 Answers   TCS,


Can static methods be inherited?

0 Answers  


What is the full name of java?

0 Answers  


what is the volatile modifier for? : Java thread

0 Answers  


Differece between class and generic class?

0 Answers   Tech Mahindra,






How do you know if a value is nan?

0 Answers  


What is constructor chaining and how is it achieved in java?

0 Answers  


Java run-time system generates What class of exceptions?

2 Answers   TCS,


What is difference between static method and static variable?

7 Answers  


Is java a pure object oriented language?

0 Answers  


What is the common usage of serialization?

0 Answers  


Why ArrayList class is not a synchronized class and why it is not a thread safe class? explain

1 Answers  


Categories