Category Archive for: The Complete Reference


switch The switch statement is Java’s multiply branch statement. It provides an easy way to  dispatch execution to different part of your code based on the value of an expression. As such, it often provides a better alternative than a target series of if-else-if statements. Here is the general form 01 a switch statement: switch(expression) { case…

Read More →

The if else if Ladder

The if else if Ladder A common programming construct that is based upon a sequence  Us is the if-else-if ladder.It looks like this. 1he if statements are executed from the top down. As soon as one of the conditions controlling  is true, ‘the statement associated with that if is executed, and the rest of the ladder…

Read More →

The Complete Reference

 The Complete Reference 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. Java’s program control statements can be put into the following categories: selection, iteration, and jump. Selection statements allow your program to choose different paths of execution based upon the outcome of…

Read More →

Back to Top