在Java中,运行下列程序,会产生的结果是
public class X implements Runnable { //1
public void run(){ //2
System.out.println(“this is run()”) ; //3
}
public static void main(String[] args) // 5
{
X t = new X(); //6
t.start(); //7
}
}
在Java中,运行下列程序,会产生的结果是
public class X implements Runnable { //1
public void run(){ //2
System.out.println(“this is run()”) ; //3
}
public static void main(String[] args) // 5
{
X t = new X(); //6
t.start(); //7
}
}