Java Learning Made Easy by Dheeraj Mehrotra - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Control Statements of JAVA

01749.jpgSelection control statements :

 

01750.jpg01751.jpg01752.jpg01753.jpg01754.jpg

The Selection control statements refer to transfer of control or execution

01755.jpg

depending on the given condition and a selection is made depending on

01756.jpg

the given options. The different course of action are performed according

01757.jpg

to the given condition. They are also termed as Decision Construct

01758.jpg01759.jpg

Statements as they help in taking decisions for further execution of the

01760.jpg

statements/instructions within the program.

01761.jpg01762.jpg01763.jpg01764.jpgIteration control statements :

 

01765.jpg01766.jpg01767.jpg01768.jpg01769.jpg

The Iteration Statements on the other hand act as an automatic looping

01770.jpg

statements. Here the block/compound statement is executed again and again until a given condition is met.

01771.jpg01772.jpg01773.jpg01774.jpg01775.jpg01776.jpg01777.jpg01778.jpg01779.jpg01780.jpg01781.jpgattention@computerscienceexpertise.com
01782.jpg01783.jpg01784.jpg01785.jpg
01786.jpg01787.jpg01788.jpg01789.jpg01790.jpg01791.jpg01792.jpg01793.jpg01794.jpg