Can a for statement loop indefinitely?

Answers were Sorted based on User's Feedback



Can a for statement loop indefinitely?..

Answer / ranganathkini

Yes a for statement can loop infinitely. Example:

for( ; ; ) {
// ..staements to loop
}

Is This Answer Correct ?    10 Yes 0 No

Can a for statement loop indefinitely?..

Answer / guest

yes

Is This Answer Correct ?    7 Yes 1 No

Can a for statement loop indefinitely?..

Answer / ravikiran(aptech mumbai)

yes for(;;)

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Core Java Interview Questions

string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable?

5 Answers   HCL,


Is there any sort function in java?

0 Answers  


What is thread safe in java?

0 Answers  


What is unicode used for?

0 Answers  


Why is the main method declared static?

0 Answers  






when we have to use final class in java?

2 Answers  


What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?

2 Answers  


Explain the importance of throws keyword in java?

0 Answers  


What is member in java?

0 Answers  


Can private class be inherited in java?

0 Answers  


What is increment in java?

0 Answers  


What is functional interface in java?

0 Answers  


Categories