//: object/E01_DefaultInitialization.java public class E01_DefaultInitialization{
int i ;
char c ;
public E01_DefaultInitialization(){
System.out.println("i = " + i );
System.out.println("c = [" + c + "]");
}
public static void main (String[] args){
new E01_DefaultInitialization();
}
}
这段代码输出不正确,
正常的应当是
i = 0
c = [ ]
实际输出的是
i = 0
c = [a ]
无解啊!
编辑环境是 JDK1.6 Notepad++
难道是那个类库错误?