看板 [ java ]
討論串[問題] 請教物件生成的流程
共 12 篇文章
首頁
上一頁
1
2
3
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Oreilly (怕寂寞卻愛自由)時間19年前 (2006/03/05 13:50), 編輯資訊
0
0
0
內容預覽:
^^ 感謝囉:). 我研究一下. --. dd. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 61.221.67.175.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者tkcn (小安)時間19年前 (2006/03/05 13:02), 編輯資訊
0
0
0
內容預覽:
[Local]. 前面例子寫的好像複雜了點 Orz. 其實這樣就可以證明了. ---. public class Test {. static Test a;. public Test(){. System.out.println(a);. }. public static void main (S
(還有80個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者tkcn (小安)時間19年前 (2006/03/05 12:45), 編輯資訊
0
0
1
內容預覽:
請注意看最後一段. "Not all JIT compilers generate the code as above.". ---. public class Test {. static Test a;. public Test(){. try{. Thread.sleep(3000);. }c
(還有491個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Oreilly (怕寂寞卻愛自由)時間19年前 (2006/03/05 12:16), 編輯資訊
0
0
1
內容預覽:
MyClass my=new MyClass();. 這行code做了以下事情. step1.宣告 MyClass型態的變數my. step2.在heap上建立MyClass 物件. step3.執行MyClass的建構子. step4.把記憶體的位置 asign reference給變數my. +
(還有1060個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者qrtt1 (thinking in java)時間19年前 (2006/03/04 19:05), 編輯資訊
0
0
1
內容預覽:
也許是鬼打牆了. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 210.59.94.187.
首頁
上一頁
1
2
3
下一頁
尾頁