一道题答案看不懂
smwu 2003-05-08 09:16:45 class s extends Thread{int j=0;
public void run() {
try{Thread.sleep(5000);}
catch(Exception e){}
j=100;
}
public static void main(String args[])
{
s t1=new s();
t1.start();
System.out.println(t1.j);
}
}
what you have to do to ensure that 'j' will print 100
答案:You have to join the t1 to main
题目很明确 但是这个正确答案是什么意思?