हिंदी

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Statements and their Scope - EXERCISE [पृष्ठ १६३]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 7 Statements and their Scope
EXERCISE | Q 8. (b) | पृष्ठ १६३
Advertisements
Share
Notifications



      Forgot password?
Use app×