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 are the important methods of java exception class?

0 Answers  


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

0 Answers  


what is Inheritense

3 Answers   Tech Mahindra,


"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.

2 Answers  


Explain about features of local inner class?

0 Answers  


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

0 Answers  


What is public/private protected in java?

0 Answers  


What is the use of private static?

0 Answers  


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

0 Answers   Aricent,


how we can create packages in java?

0 Answers  


Difference between the paint() and repaint() methods?

1 Answers  


What is the benefit of inner classes in java?

0 Answers  


Categories