下面的代码运行成功,是否意味着我们可以启动两次线程?
public class enu extends Thread {
static int count = 0;
public void run(){
System.out.println("running count "+count++);
}
public static void main(String[] args) {
enu obj = new enu();
obj.run();
obj.start();
}
}
输出 - 运行计数 0 运行计数 1