java 類靜態代碼塊變量和類成員命名同樣

例子 public class Test { static { int x = 5; } static int x,y; public static void main(String[] args) { x--; y=x++ + ++x; System.out.println(x+"****"+y)
相關文章
相關標籤/搜索