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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
