91-9990449935 0120-4256464 |
Java Switch StatementThe Java switch statement is executes one statement from multiple conditions. It is like if-else-if ladder statement. Syntax: Example: Output: 20 Java Switch Statement if fall-throughThe java switch statement is fall-through. It means it executes all statement after first match if break statement is not used with switch cases. Example: Output: 20 30 Not in 10, 20 or 30
Next TopicJava For Loop
|