Java compiler executes the code top to bottom. The statements in the code are executed according to the order in which they appear. However, It provides statements that can be used to control the flow of its code. Such statements are called control flow statements. It is one of the fundamental features of Java, which provides a smooth flow of program.Java provides three types of control flow statements selection statements, iteration statements, and jump statements.