Back to Browse

32 - Jump Statements in Java (Hindi/Urdu)

4.3K views
Jul 19, 2018
16:34

LIKE, SHARE & SUBSCRIBE Jump Statements in Java are used to transfer the execution Control to another part of the program. Types of Jump Statements in Java : 1 break statement 2) continue statement 3) return statement 4) Exception Handling 5) assert Break statement is generally used to break the ongoing execution process when a special condition met. This special condition is defined in a conditional check block and there we use the break statement. Note that break statement should not be used to only break the loop. A loop must end naturally by fulfilling the conditions written in the loop. We can use the break statement in loops, switch statement and labeled blocks (Labelled Blocks are rarely used in Java programming). Continue Statement is used to skip a particular iteration. It is only used in loops, not in the switch statement and labeled blocks like we use the break statement. The only difference between break and continue statement is that break statement halt the whole execution process of the loop and continue statement only skips a particular iteration where we defined our continue statement. Thanks for watching & stay tuned. Like us on Facebook - https://goo.gl/y7oxYc Follow us on Twitter - https://goo.gl/UKmTfn

Download

0 formats

No download links available.

32 - Jump Statements in Java (Hindi/Urdu) | NatokHD