【简答题】
class MyThread extends Thread { private int data; public void run() { data+=2; System.out.println(data); } } public class ThisTest{ public static void main(String[] args) { Thread t1=new MyThread(); Thread t2=new MyThread(); Thread t3=new MyThread(); t1.start(); t2.start(); t3.start(); System.out.println(); } } 运行结果为:____
参考答案:
参考解析:
举一反三
【简答题】写出程序运行的结果。 main() {int i,j,m,n; i=8; j=10; m=++i; n=j++; printf("%d,%d,%d,%d,"i,j,m,n); }