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

Give any two differences between C++ and java.

0 Answers   GrapeCity,


Explain about complier design(phases)

0 Answers   Aditi Placement Service,


Explain the differences between abstraction and encapsulation?

0 Answers  


Mention the default values of all the elements of an array defined as an instance variable.

0 Answers  


What advantage do java's layout managers provide over traditional windowing systems?

0 Answers  






What is :: operator in java 8?

0 Answers  


Define an abstract class with reference to java.

0 Answers  


what is the life cycle of jsp?

3 Answers   Photon,


Define inheritance with reference to java.

0 Answers  


Why are generics used?

0 Answers  


What is the exact difference in between Unicast and Multicast object?

0 Answers  


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

0 Answers  


Categories