हिंदी

Explain the term in relation to SWITCH: Default

Advertisements

प्रश्न

Explain the term in relation to SWITCH:

Default

स्पष्ट कीजिए
Advertisements

उत्तर

In Java, the default label is used within a switch statement to specify a block of statements that is executed when none of the case labels match the value of the switch expression. The default block is optional and is generally used to handle unmatched values.

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

APPEARS IN

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



      Forgot password?
Use app×