问答题
注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。
class ClassName implements Runnable{
int n;
_______________________{
try{
Thread. sleep (2000);
n=100;
}catch(Exception e) {}
}
public static void main(String[] args){
try{
ClassName a=new ClassName();
__________________
threadl.start();
threadl.join();
int m=a.n;
System.out.println("m="+m);
}catch(Exception e) {}
}
}