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

write SQL command for table employee where print first name or last name start like "A" and who is working in domain(angular js,java,dotnet)

1 Answers  


where do you place after you did code in java

2 Answers  


What are the basics of core java?

0 Answers  


Which programming language is most secure?

0 Answers  


How to add menushortcut to menu item?

0 Answers  






What is the purpose of a default constructor?

0 Answers  


What is onClassLoader in java?

5 Answers   Cap Gemini,


What is the null?

0 Answers  


If goto and const is reserve words than why it is not work in java?

0 Answers  


Can a for statement loop indefinitely?

3 Answers  


What does exp mean in math?

0 Answers  


What is a heavyweight component?

0 Answers  


Categories