Java decision-making statements allow you to make a decision, based upon the result of a condition.
All the programs in Java have set of statements, which are executed sequentially in the order in which they appear. It happens when jumping of statements or repetition of certain calculations is not necessary. However, there may arise some situations where programmers have to change the order of execution of statements based on certain conditions which involve kind of decision-making statements. In this chapter, you will learn about how the control flow statements work.
The flowchart of Decision-making technique in Java can be expressed as:
Java has such decision-making capabilities within its program by the use of following the decision making statements: