Thursday, November 27, 2008

Control statements

Control statements is the most important feature of Java as they are used to alter the normal flow of executin of a program. Java’s program control statements can be put into the following categories selection, iteration and jump. A programming language uses control statements to cause the flow of execution to advance and branch based on changes to the state of a program. Selection statements allow the program to choose different paths of execution based upon the outcome of an expression or the state of a variable. Iteration statements enable program execution to repeat one or more statements. Jump statements allow the program to execute in a non liner fashion.

0 comments: