Computer Science, asked by Exam2345, 24 days ago

What is the use of default and switch in java programming?​

Answers

Answered by venomgirl8
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 Anonymous
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