在Java中,运行下面的代码结果是
public class Foo implements Runnable {
public void run (Thread t) {
System.out.println("Running.");
}
public static void main (String[] args) {
new Thread(new Foo()).s
在Java中,运行下面的代码结果是
public class Foo implements Runnable {
public void run (Thread t) {
System.out.println("Running.");
}
public static void main (String[] args) {
new Thread(new Foo()).start();
}
}