Java Reference
In-Depth Information
x = 7;
x++; // An increment statement with no ambiguity
y = 2 * x; // y = 16, and x = 8
Table 6.1 lists the operators available in the Java language in the order in which
they are evaluated by the compiler.
TABLE 1.2 RESPONSIBILITIES OF CSIRT DURING THE INCIDENT RESPONSE PROCESS
Operator
Description
COBOL Equivalent
.
Member selection
[ ]
Array subscript
( )
( )
Expression grouping or
( ) as used by expression grouping IF
function call ((A = B) AND (X = Y))
++, - -
Autoincrement/decrement
PERFORM VARYING
*, /, %
Multiply, divide, remainder
COMPUTE or MULTIPLY,
DIVIDE GIVING
+, -,
Addition, subtraction
COMPUTE or ADD,
SUBTRACT GIVING
<<, >>, >>>
Bitwise shift operations*
<=, <, >=, >
Less than or equal to, less than,
NOT >, <, NOT <, >
greater than or equal to, greater than
= =, !=
Equality test, inequality test
= , NOT =
&, |, ^, ~
Bitwise AND, OR, XOR, NOT
&&, ||, !
Logical AND, OR, NOT
AND, OR, NOT
=
Assignment
MOVE
*=, /=, %=,
Complex assignment
COMPUTE
+=, -=, &=
*Java includes a number of bitwise operations and makes some important distinctions between these operations and
boolean logical operations. Since COBOL does not have bitwise operations and most business operations do not require
them, the reader is encouraged to explore this concept in other sources.
 
Search WWH ::




Custom Search