Forums for the Business Analyst

 
  Modern Analyst Forums  Careers  Career Advice &...  What is the use of break statement?
Previous Previous
 
Next Next
New Post 3/8/2021 9:33 PM
User is offline sravanih2k
2 posts
No Ranking


What is the use of break statement? 

Hi, What is the use of break statement

 
New Post 4/4/2021 7:54 PM
User is offline ShreeMBA
15 posts
9th Level Poster


Re: What is the use of break statement? 

Hi,

The break statement is used in a multiple loop statements like the switch  or do while statements. 
It terminates immediately  and program control moves to the next statement  following the loop.

It is useful when there are many conditions to be evaluated and once there is a match the loop can be skipped proceeding to the next execution code in the program instead of evaluating all conditions.

Hope this helps.

 

 
Previous Previous
 
Next Next
  Modern Analyst Forums  Careers  Career Advice &...  What is the use of break statement?

Community Blog - Latest Posts

Are you testing your product in the most effective way?
Today covid-19 pandemic has completely flipped the business model. Various conventional Business models like banking and health had to adopt the digital era. Even the school and colleges have to create various applications so that they can provide online learning for their students. All these statements justify the modern business model as complete...
Offshore development has become an increasingly popular model for businesses looking to expand their reach and reduce costs. With this model, businesses can hire a team of developers located in a different country or continent, often in regions where labor is cheaper. However, managing an offshore development team can be challenging, especially ...
Context:  Intro Change Request Definition Reasons for CRs Adaptive, predictive and mixed projects Flow of processing change requests Change Management Workflow Tools and Techniques 1. Intro  The World will never stop changing, as well as human needs and desires. The business environment evolves continually. An or...

 






 

Copyright 2006-2023 by Modern Analyst Media LLC