DEVFYI - Developer Resource - FYI

Can a for statement loop indefinitely?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

202. Can a for statement loop indefinitely?

Yes, a for statement can loop indefinitely. For example, consider the following: for(;;) ;

(Continued on next question...)

Other Interview Questions