KnowledgeBoat Logo

Computer Applications

Is it necessary to use 'break' statement in a switch case statement? Explain.

Java Conditional Stmts

112 Likes

Answer

Use of break statement in a switch case statement is optional. Omitting break statement will lead to fall through where program execution continues into the next case and onwards till end of switch statement is reached.

Answered By

62 Likes


Related Questions