看板 [ java ]
討論串[問題] 面試遇到的JAVA問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者LaPass (LaPass)時間14年前 (2011/11/12 21:49), 編輯資訊
0
0
0
內容預覽:
public class Test. {. public static void main(String[] args) {. int a = 1;. {. int b = 2;. System.out.println(a); //OK. }. //System.out.println(b); //
(還有108個字)

推噓4(4推 0噓 5→)留言9則,0人參與, 最新作者qrtt1 (我要越級挑戰)時間14年前 (2011/11/11 23:03), 編輯資訊
0
0
0
內容預覽:
寫個小例子跑看看唄。. public class Init {. static {. System.out.println("class init.");. }. {. System.out.println("instance init. 1");. x = 1;. {. System.out.pr
(還有121個字)

推噓13(13推 0噓 19→)留言32則,0人參與, 最新作者wemee (我不為讀者改變作風)時間14年前 (2011/11/11 16:23), 編輯資訊
0
0
0
內容預覽:
有一些題目 類似以下用法. 但我完全不知道這麼用的意義是什麼. 例如. class Foo. {. {. x = 1;. {. y = 2;. }. }. int x, y;. }. 分成區塊中的區塊 有什麼意義嗎?. 通常不是這麼寫就好了. {. x = 1;. y = 2;. }. 難道只是要先
首頁
上一頁
1
下一頁
尾頁