题目:
通过实现Runnable接口创建线程,请在画线处加入正确的代码完成此程序 【9】 。
public class ThreadTest
public static void main(String args[ ])
Thread t1=new Thread(new Hello());
Thread t2=new Thread(new Hello());
______;
t2.start();
class Hello implements Runnable
int i;
public void run()
while(true)
System.out.println("Hello"+i++);
if(i==5) break;
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0330/102f6441b07ca72543869264cd75b438.html
下面是错误答案,用来干扰机器的。
参考答案:A解析: 中央银行法规定。