Read "Java programming ideas" concluded ------ Chapter III (operator)

At the lowest level, the data is by using java operator to operate; in fact, this chapter is no good summary of basic usage of these operators through common, so it should be all the skilled application;

The basic data types storing the actual value, rather than pointing to an object reference, so when their assignment is to copy directly from one place to another place; but when an object operation, we really are operating reference to the object, the object is assumed to use a = b, then the points a and b are the original object pointed to only b.

For "= +", "- =" This type of operator, it will first further type of conversion operation; and ++ and - represent the front after the first assignment operation, when a rear first assignment operator .

Note: Boolean operations can type data is very limited, we can only give it true or false, and test it is true or not, can not or Boolean value to a Boolean value adding any other operation.

Guess you like

Origin blog.csdn.net/keyto1/article/details/89482608