EXPRESSIONS
Constant Expression
15.27
behave in exactly the same manner as the statements:
k = k + (k = 4) * (k + 2);
a[0] = a[0] + (a[0] = 4) * (a[0] + 2);
15.26   Expression
An
Expression
 is any assignment expression:
Expression:
AssignmentExpression
Unlike C and C++, the Java language has no comma operator.
15.27   Constant Expression
ConstantExpression:
Expression
A compile time
constant expression
 is an expression denoting a value of
primitive type or a
String
 that is composed using only the following:
Literals of primitive type and literals of type
String
Casts to primitive types and casts to type
String
The unary operators
+
,
,
~
, and
!
(but not
++
 or
  
)
The multiplicative operators
*
,
/
, and
%
The additive operators
+
 and
The shift operators
<<
,
>>
, and
>>>
The relational operators
<
,
<=
,
>
, and
>=
(but not
instanceof
)
The equality operators
==
 and
!=
The bitwise and logical operators
&
,
^
, and
|
The conditional and operator
&&
 and the conditional or operator
||
The ternary conditional operator
? :
Simple names that refer to
final
 variables whose initializers are constant
expressions
381






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