मराठी

Is it necessary to include default case in a switch statement? Justify. - Computer Applications

Advertisements
Advertisements

प्रश्न

Is it necessary to include default case in a switch statement? Justify. 

थोडक्यात उत्तर

उत्तर

Yes. When no case is available for a given switch variable value, the 'default' case displays a message to the user indicating the incorrect decision. 

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ १००]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.08 Conditional Statements in Java
EXERCISES | Q V. 3. | पृष्ठ १००
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×