• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in continue and break

 
Divya Gehlot
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


1) Compile time error, System.out has no print method
2) No output at runtime
3) Output of 0
4) Compile error, break cannot occur after its target label

I expected the output to be 01 but when I run the above program got the ouput 0 . Can anybody explain me ?
 
Nik Arora
Ranch Hand
Posts: 652
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Divya,
Dont post multiple times the same question.Just check out your previous post.


Regards
Nik
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic