list the difference between if and switch statement in java
Answers
Answered by
1
Answer:
If is used when you have 3 or less than 3 either or statements or problems
Switch is basically used when there are more than 3 either or statements
IT IS CONVENIENT TO USE SWITCH INSTED OF IF TO KEEP YOUR SYNTAX SIMPLE IN THE CONDITION ABOVE
Explanation:
MARK ME BRAINLIEST
THANKS
Similar questions
Physics,
3 months ago
Geography,
3 months ago
Environmental Sciences,
3 months ago
Biology,
6 months ago
English,
6 months ago