• 2022-07-01
    以下那些代码段能正确执行
    A: publicstaticvoidmain(Stringargs[]){
    bytea=3;
    byteb=2;
    b=a+b;
    System.out.println(b);
    }
    B: publicstaticvoidmain(Stringargs[]){
    bytea=127;
    byteb=126;
    b=a+b;
    System.out.println(b);
    }
    C: publicstaticvoidmain(Stringargs[]){
    bytea=3;
    byteb=2;
    a+=b;
    System.out.println(b);
    }
    D: publicstaticvoidmain(Stringargs[]){
    bytea=127;
    byteb=127;
    a+=b;
    System.out.println(b);
    }
  • 举一反三