• 2021-04-14
    下面的程序中,哪行会报错?
    publicclassStaticTest{
    intage;
    Stringname;
    staticinttotalFee=500;

    publicvoidshowName(){
    System.out.print(this.name);
    }

    publicstaticvoidshowTotalFee(){
    line1:System.out.print(totalFee);
    line2:showName();
    }
    publicstaticvoidmain(String[]args){
    line3:StaticTest.showTotalFee();
    }
    }