if Statement//----- if statement with only a true clause |
|
switch StatementThe effect of the switch statement is to choose some statements to execute depending on the integer value of an expression. The break statement exits from the switch statement. If there is no break at the end of a case, execution continues in the next case (fall-through)!!switch (expr) { |
whilewhile (testExpression) { forThe for first executes the initialStmt, then the testExpr, if true executes the statements. Before testing the testExpr again, it executes the incrementStmt.for (initialStmt; testExpr; incrementStmt) { dodo {statements } while (testExpression); |
|
Other loop controlsbreak; //exit innermost loop or switch Label a statement:outerloop: Method Returnreturn; //exits a void method
try...catch exceptions (exception handling)
|