Xiaobo Sun

          Eclipse-Unix http://umlfact.berlios.de/~s_xsun/

          Java initialization

          The JAVA field (which is located in the Object in the heap) is default initialized as 0, false, and null.

          A a = new A(); // equal

          A a; // a is pointer/ref in the stack. (In stack the integer value take the random value)
          a = new A(); // new A() is the Object in the heap. (In heap the integer value will be initialized as 0)

          posted on 2007-07-16 14:16 Xiaobo Sun 閱讀(319) 評(píng)論(0)  編輯  收藏 所屬分類: Java

          <2007年7月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 普定县| 汉沽区| 太康县| 区。| 甘孜县| 临漳县| 临武县| 贵南县| 龙海市| 新乡县| 民乐县| 娄烦县| 台南县| 浑源县| 额济纳旗| 常熟市| 云霄县| 永兴县| 六安市| 台安县| 尚志市| 肇源县| 喜德县| 平阳县| 恭城| 海原县| 铁力市| 浪卡子县| 临沧市| 五大连池市| 夏河县| 鹰潭市| 理塘县| 邳州市| 东兴市| 甘孜| 曲麻莱县| 广宗县| 松原市| 定远县| 灌云县|