隨筆-2  評論-0  文章-0  trackbacks-0

          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 on 2005-09-17 22:47 jackson 閱讀(234) 評論(0)  編輯  收藏 所屬分類: Techonogy-Java

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 读书| 琼海市| 鱼台县| 泽州县| 合阳县| 黔江区| 榆社县| 会昌县| 淳化县| 岱山县| 德庆县| 永寿县| 花莲县| 集贤县| 肇州县| 峨边| 泰来县| 瑞安市| 屯留县| 靖宇县| 兴隆县| 麻阳| 安岳县| 黔江区| 新沂市| 福贡县| 应城市| 无锡市| 龙州县| 肥西县| 专栏| 冷水江市| 宜兴市| 陆丰市| 丰宁| 碌曲县| 高安市| 蒙阴县| 嘉祥县| 大丰市| 大田县|