ALL >> Education >> View Article
Labeled Statements
The concepts of labeled statements are important, when you are preparing for SCJP/OCJP certifications. Let’s read more about labeled statements in the article.
Java doesn’t provide goto statements. Java contains several ways to jump from one statement to another in certain circumstances. Below we discuss such statements.
Labeled break statement:
Break statement will be used when you want to terminate the loop execution at particular condition and execute next statements after the loop.
Example 1:
If the break occurs within a nested loop, the flow will jump to the next statement in the next outer loop. For example, in the following case
for( int k=0; k< 10; k++){
while ( i < 5) {
i=b.call();
if(i
Add Comment
Education Articles
1. Essentials Of Graphic Design: A Comprehensive Beginner's GuideAuthor: Proadept Academy
2. Unveiling The Best Digital Marketing Course In Navi Mumbai
Author: Edrupt
3. It's Mine! - How To Teach Kids About Sharing
Author: Yello
4. Unleash The Power Of Machine Learning: Research Proposal Development In Izmir, Turkey
Author: elaine
5. Unlock Your Success: The Ultimate Mulesoft Certified Platform Architect Mcpa-level-1 Study Guide
Author: emma john
6. Unraveling The Difference Between Geology And Geography
Author: Tahir Shahzaib
7. How To Choose Best Ias Coaching In India For English Medium
Author: GopaltarunIAS
8. What Is Elk Stack? Introduction To Stack, Architecture, And Components
Author: Eshwar
9. The Best Countries For Study Abroad: Exploring Educational Opportunities Around The World
Author: study abroad
10. Exploring The Opportunities In The Oil And Gas Industry For Indian Experts
Author: Blitz Academy
11. Lincoln American University: Nurturing Future Healthcare Leaders Through Affinity Education Pvt Ltd
Author: Affinity Education
12. Strengthen Your Research Proposal: Correction Services In Ankara, Turkey
Author: elaine
13. Unlocking The Potential Of Aws Education: Delving Into Amazon Web Services' Purpose
Author: Giri
14. Projects Using Data Analytics
Author: Gajendra
15. A Guide To Choosing Abroad Education Consultants In Delhi
Author: Shilpa Arora