Showing posts with label for loop. Show all posts
Showing posts with label for loop. Show all posts

Wednesday, 2 November 2011

Sun Certified Java Programmer (SCJP)-6

Flow control statements


The flow control statements allow you to conditionally execute statements, to repeatedly execute a block of statements, or to just change the sequential flow of control.

if/else statement


The if/else statement is used for decision-making -- that is, it decides which course of action needs to be taken. The syntax is:

if(boolean expression)
{