继承Thread类 子类继承Thread类具备多线程能力启动线程:子类对象.start()实现Runnable接口 实现接口Runnable具备多线程能力启动线程:传入目标对象+Thread对象.start()