引用:修饰符 class 类名{CODE}
引用: abstract boolean break byte case catch char class continue default do double else extends false final finally float for if implements import instanceof int interface long native new null package private protected public return short static super switch synchronized this throw throws transient true try void volatile while
引用:class TestScope{ public static void main(String [] args) { int x=5; { int q=12; System.out.println(x); System.out.println(q); } System.out.println(x); //System.out.println(q);//q不可见 }}
引用:{int x=0; { int x=1; x++; }x++;}
引用:class Testvar{ public static void main(String [] args) { int x=0;//初始化 x=x+1; System.out.println(x); }}
引用: . [] () ++ -- ! ~ * / % + - << >> >>> < > <= >= == != & ^ && || ?: =