Examveda
Examveda

Which of the following for loops will be an infinite loop?

A. for(; ;)

B. for(i=0 ; i<1; i--)

C. for(i=0; ; i++)

D. All of the above

Answer: Option D


This Question Belongs to Java Program >> Flow Control

Join The Discussion

Comments ( 1 )

  1. Vimlesh Yadav
    Vimlesh Yadav :
    5 years ago

    because the conditional statement by default is true so, there is break point will be encountered which can stop the loop in all the options.

Related Questions on Flow Control