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

What is the purpose of assert keyword used in jdk1.4.x?

0 Answers  


What are basic data types?

0 Answers  


Where is the find and replace?

0 Answers  


What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?

1 Answers   Wipro,


What are synchronized methods ?

0 Answers  






Difference between String and String Buffer?

3 Answers  


What is a substring of a string?

0 Answers  


What happens when you assigned a 'double' value to a 'String'?

8 Answers  


What is the difference between delete and delete[]

0 Answers   Amazon,


How do I type unicode?

0 Answers  


What is derived datatype?

0 Answers  


What is the difference between numeric and integer?

0 Answers  


Categories