隨筆-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

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


          網站導航:
           
          主站蜘蛛池模板: 湖南省| 常熟市| 西盟| 闻喜县| 临清市| 辽源市| 开远市| 漳平市| 内丘县| 郧西县| 香格里拉县| 乐昌市| 灌云县| 广饶县| 峡江县| 晋江市| 三门县| 安阳市| 商水县| 六盘水市| 文化| 昭苏县| 南木林县| 云南省| 诸暨市| 凤城市| 通州区| 印江| 佛坪县| 连城县| 出国| 全南县| 大理市| 芜湖县| 三穗县| 平湖市| 莒南县| 通海县| 盐山县| 新巴尔虎左旗| 华亭县|