What is the use of default and switch in java programming?
Answers
Answered by
0
Answer:
The break statement is used inside the switch to terminate a statement sequence. The break statement is optional. If omitted, execution will continue on into the next case. The default statement is optional and can appear anywhere inside the switch block.
Answered by
2
Answer:
The break statement is used inside the switch to terminate a statement sequence. The break statement is optional. If omitted, execution will continue on into the next case. The default statement is optional and can appear anywhere inside the switch block.
Similar questions