• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strange loop behavior

 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

well i know when we left blank the condition statement of for loop is always true.
why its printing "1" in infinity loop??
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic