Wednesday, 8 November 2017

Java decision-making

November 08, 2017 Posted by Prakash No comments
Java decision-making statements allows you to make 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. This 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 involves kind of decision-making statements. In this chapter you will learn about how the control flow statements works.
The flowchart of Decision making technique in Java can be expressed as:
Decision Making Statements in Java
  • if Statement
    • if statement
    • if-else statement
    • else-if statement
  • Conditional Operator
  • switch statement

0 comments:

Post a Comment