15.27
Constant Expression
EXPRESSIONS
Qualified names of the form
TypeName
.
Identifier
that refer to
final
vari
ables whose initializers are constant expressions
Compile time constant expressions are used in
case
labels in
switch
statements
( 14.9) and have a special significance for assignment conversion ( 5.2).
Examples of constant expressions:
true
(short)(1*2*3*4*5*6)
Integer.MAX_VALUE / 2
2.0 * Math.PI
"The integer " + Long.MAX_VALUE + " is mighty big."
. . . when faces of the throng turned toward him and ambiguous eyes stared
into his, he assumed the most romantic of expressions . . .
F. Scott Fitzgerald,
This Side of Paradise
(1920)
382
footer
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