Summary
In many applications, choices are to be made depending on some conditions related to the problem. Selection or decision structures are used to model such situations.
Java supports the implementation of “selection” through the “if” and “switch” statements. In this discussion we looked at various forms of if statements.