Selection Statement – Decision Making

There are three types of selection statements in Java. First one is if statement which either performs (selects) an action, if a condition is true, or skips it, if the condition is false. Second is ifelse statement which performs an action if a condition is true and performs a different action if the condition is false. Third one is switch statement which performs one of many different actions, depending on the value of an expression.

Continue reading