StaticDemo
class staticDemo{
static int m=10;
static int n;
static void method(int a){
System.out.println("a="+a);
System.out.println("m="+m);
System.out.println("n="+n);
}
static{
System.out.println("static block is initializeed.");
n=m*4;
}
public static void main(String[] args) {
// TODO 自动生成的方法存根
method(42);
}
}