What are the parts of switch in java?
Answers
Answered by
3
The Java switch expression must be of byte, short, int, long (with its Wrapper type), enums and string. Each case statement can have a break statement which is optional. When control reaches to the break statement, it jumps the control after the switch expression.
Answered by
0
Answer:
The Java switch expression must be of byte, short, int, long (with its Wrapper type), enums and string. Each case statement can have a break statement which is optional. When control reaches to the break statement, it jumps the control after the switch expression.
Explanation:
please follow me mark as brainlist
Similar questions