
Conditional and Branching Statements 3.19
• * / and % have all the same priority
• Unary operators like + , - , and * have more priorities than binary operators
3.12 Conditional and Branching Statements
Normally the instructions are executed sequentially. But logic demands that the next instruc-
tion to be executed need not necessarily be the next in line, but can be branched to any other
statement as per logic of the algorithms. These are called branching statements. The branching
can either be conditional or unconditional.
Java is a block-oriented language. The program consists of statements. Statements are logi-
cally grouped into blocks. ...