【单选题】若编译和运行下列代码,出现的结果将是 ( ) public class MyAdd extends Thread{ static int total = 10; int n; public MyAdd(int n) { this.n=n; } public void run() { try{ sleep(n); total=total+n; Syste...
【单选题】若编译和运行下列代码 , 出现的结果将是 ( ) class My Class { int i = 0; public int myMethod(int x){ return i+x ; } public static void main(String args[]) { System.out.println(myMethod(10)); } }