Explain the following jumping statement: Break
Advertisements
प्रश्न
Explain the following jumping statement:
Break
स्पष्ट करा
Advertisements
उत्तर
In Java, the break statement is a jumping statement used to terminate the execution of a loop or switch statement immediately. It transfers program control to the next statement following the loop or switch block. It is commonly used to exit a for, while, or do-while loop before its normal termination.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
