14.12.3
Abrupt Completion of
for
 statement
BLOCKS AND STATEMENTS
N
If the
Expression
 is present and the value resulting from its evaluation is
false
, no further action is taken and the
for
 statement completes normally.
If the value of the
Expression
 is
false
 the first time it is evaluated, then the
Statement
 is not executed.
If the
Expression
 is not present, then the only way a
for
 statement can com 
plete normally is by use of a
break
 statement.
14.12.3   Abrupt Completion of
for
 statement
Abrupt completion of the contained
Statement
 is handled in the following manner:
If execution of the
Statement
 completes abruptly because of a
break
 with no
label, no further action is taken and the
for
 statement completes normally.
If execution of the
Statement
 completes abruptly because of a
continue
 with
no label, then the following two steps are performed in sequence:
N
First, if the
ForUpdate
 part is present, the expressions are evaluated in
sequence from left to right; their values, if any, are discarded. If the
ForUpdate
part is not present, no action is taken.
N
Second, another
for
 iteration step is performed.
If execution of the
Statement
 completes abruptly because of a
continue
 with
label
L
, then there is a choice:
N
If the
for
 statement has label
L
, then the following two steps are performed
in sequence:
O
First, if the
ForUpdate
 part is present, the expressions are evaluated in
sequence from left to right; their values, if any, are discarded. If the
ForUpdate
 is not present, no action is taken.
O
Second, another
for
 iteration step is performed.
N
If the
for
 statement does not have label
L
, the
for
 statement completes
abruptly because of a
continue
 with label
L
.
If execution of the
Statement
 completes abruptly for any other reason, the
for
statement completes abruptly for the same reason. Note that the case of abrupt
completion because of a
break
 with a label is handled by the general rule for
labeled statements ( 14.6).
282






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved