Java Reference
In-Depth Information
Summary
Anyone who pops open a set of matryoshka dolls has to be a bit disappointed to reach
the smallest doll in the group. Advances in microengineering enable Russian artisans to
create ever smaller and smaller dolls, until someone reaches the subatomic threshold and
is declared the winner.
You have reached Java's smallest nesting doll today. Using statements and expressions
enables you to begin building effective methods, which make effective objects and
classes possible.
Today, you learned about creating variables and assigning values to them. You also used
literals to represent numeric, character, and string values and worked with operators.
Tomorrow, you put these skills to use developing classes.
To summarize today's material, Table 2.7 lists the operators you learned about. Be a doll
and look them over carefully.
TABLE 2.7
Operator Summary
Operator
Meaning
Addition
+
Subtraction
-
Multiplication
*
Division
/
Modulus
%
Less than
<
Greater than
>
Less than or equal to
<=
Greater than or equal to
>=
Equal
==
Not equal
!=
Logical AND
&&
Logical OR
||
Logical NOT
!
&
AND
|
OR
^
XOR
Assignment
=
Increment
++
 
 
Search WWH ::




Custom Search