单选题 请阅读下面程序
public class ThreadTest
public static vodi main(Sting args[])
Thread t1=new Thread(new Hello());
Thread t2=new Thread(new Hello());
t1.start();
t2.start();


class Hello implements Runnable
int i;
public void run()
while (true)
System.out.printIn("Hello"+i++);
if(i==5) break;



该程序创建线程使用的方法是______。

【正确答案】 B
【答案解析】[解析] 实现Runnale接口和继承Thread类是创建线程的两种方式。很明显本程序中实现了Runnable接口,故正确答案是B。