2005年9月17日
1. Any primitive
type is overflow, it will became minus number and absolute value will be
one larger. For example, Byte.MAX_VALUE is 127, then it will be equal to -128,
same to other types
Meanwhile, if it is underflow, it will became positive and be equal to
Max_Value
2. Operation precedence and order
postfix operators
|
[] . (params) expr++ expr--
|
unary operators
|
++expr --expr +expr -expr ~ !
|
creation or cast
|
new (type)expr
|
multiplicative
|
* / %
|
additive
|
+ -
|
shift
|
<< >> >>>
|
relational
|
< > >= <= instanceof
|
equality
|
== !=
|
AND
|
&
|
exclusive OR
|
^
|
inclusive OR
|
|
|
conditional AND
|
&&
|
conditional OR
|
||
|
conditional
|
?:
|
assignment
|
= += -= *= /= %= >>= <<= >>>= &= ^= |=
|
<<
|
Shift bits left, filling with zero bits on the right-hand side
|
>>
|
Shift bits right, filling with the highest (sign) bit on the left-hand
side
|
>>>
|
Shift bits right, filling with zero bits on the left-hand side
|
posted @
2005-09-17 22:47 jackson 阅读(206) |
评论 (0) |
编辑 收藏
Today, It's my first time to log some thoughts and ideas on Internet
although i have this mind long long ago. Because many times i can get
much experiences from others, i also want to share some good things
with many people who have same ambition or worked for same fields. I
consider that it have two advantages for me, one is that it can help me
accumulate more knowledges. After all when you write some outside or
share something, they must be tested or verified. At the process of
verifying, i will get more amazings and pleasure. The other is that it
can improve my english-writing. Although i write many docs in english
at comapny, i can try more words to express my feeling. It's more
interesting than done in company. OK, writing here today and complete
setting enviroment and write some little doc. Hope anyone visited my
blog can make friends with me and leave something to me for technology
or English.
posted @
2005-09-17 22:01 jackson 阅读(163) |
评论 (0) |
编辑 收藏