1.继承Thread类,重写run方法 2.实现Runnable接口,重写run方法,实现Runnable接口的实现类的实例对象作为Thread构造函数的target
Copyright © 2023 Powered by MWeb, 湘ICP备2021013552号-1
TOP