This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes strange loop behavior Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "strange loop behavior" Watch "strange loop behavior" New topic
Author

strange loop behavior

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400


well i know when we left blank the condition statement of for loop is always true.
why its printing "1" in infinity loop??


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

ah i get it now, the first part of for loop is always execute once


by the way, i would like to wish happy new year to all
 
 
subject: strange loop behavior