主题:求教,请高手指教
class C1{
C1(){};
}
class ClassName {
static C1 x;
static { //(1)
x = new C1();
}
static C2 x = new C2(); //(2)
}
(1)和(2)的用发法有什么区别???
C1(){};
}
class ClassName {
static C1 x;
static { //(1)
x = new C1();
}
static C2 x = new C2(); //(2)
}
(1)和(2)的用发法有什么区别???