Home » Online Computer Education » Learn Fundamentals of Java Programming “Control Flow in Java Programming ” Lesson 7
Learn Fundamentals of Java Programming “Control Flow in Java Programming ” Lesson 7
Control Flow
Recall, that a program is nothing but a sequence of instructions. Java executes the instructions in sequential order, that is, one after the other. However, sometimes you might want to execute an instruction only if a condition holds true. Or you may want to execute a set of instructions repeatedly until a condition is met. Java provides selection structures for the former and repetition structures for the latter.