InterviewSolution
Saved Bookmarks
| 1. |
When is if-else-if statement preferred over switch statement? |
|
Answer» The If-else can handle a range of comparisons whereas the switch can handle only equality. The If-else can combine logical operations. |
|