2013-08-22 79 views

回答

0

這是錯誤的。我做了一個程序來做到這一點,它顯示在控制檯上:

1Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
Cannot make a static reference to the non-static field aaaa 

at rubbish.a.b(a.java:8) 
at rubbish.a.main(a.java:15) 

對不起,如果我錯了,但我很確定我是對的。

+0

此外,1是靜態打印的非靜態東西 - 所以它確實工作,但引發了一個異常。 –