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) 評論(0)  編輯  收藏 所屬分類: Java

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

          導航

          統(tǒng)計

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 阜平县| 永济市| 来安县| 信宜市| 宁化县| 刚察县| 沂源县| 通江县| 阿克苏市| 鄂温| 南康市| 临桂县| 建始县| 柳州市| 宣汉县| 博乐市| 津南区| 乃东县| 井研县| 三门县| 平谷区| 新和县| 博客| 景洪市| 卢氏县| 晋中市| 和硕县| 平潭县| 三台县| 长沙县| 南昌市| 揭西县| 建平县| 奇台县| 新巴尔虎左旗| 福鼎市| 巫溪县| 湟中县| 全椒县| 泗洪县| 天全县|