Break Continue | Java Programming | GeeksforGeeks

preview_player
Показать описание
Find Complete Code at GeeksforGeeks Article:

This video is contributed by Trishaank Kandhi.

Please Like, Comment and Share the Video among your friends.

Install our Android App:

If you wish, translate into local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

@10:30 Case 1 : system.out.println(i); will become unreachable statement. whereas in case 2 It will be totally fine to execute the loop.

shiva
Автор

Continue before print statement will give you error because this print statement never be reachable meaning will not be executable. And after print statement it will print all the number from 0-9.

akshaynagpurkar
welcome to shbcf.ru