【简答题】已有如下程序: class Person{ private int a; public void change(int m){a=m;} } public class Teacher extends Person { public int b; public static void main(String args[]){ Person p=new Person(); Teacher t=new ...
【单选题】已有如下程序: public class Test{ public int method(){ static int i=0; i++; return i; } public static void main(String args[]) { Test t=new Test(); t.method(); int j=t.method(); System.out.println(j); } } 下面...