English

Explain the term in relation to SWITCH: Case

Advertisements

Question

Explain the term in relation to SWITCH:

Case

Explain
Advertisements

Solution

In Java, a case is a label used within a switch switch statement to represent a specific value of the switch expression. When the value of the expression matches a case label, the statements associated with that case are executed.

shaalaa.com
  Is there an error in this question or solution?
Chapter 7: Statements and their Scope - EXERCISE [Page 163]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 7 Statements and their Scope
EXERCISE | Q 4. (b) | Page 163
Advertisements
Share
Notifications



      Forgot password?
Use app×