Java第十章课后练习答案

题1:创建线程两种方法:①extends Thread ②implements Runnable 题2:查API Thread中重载了三个join()方法,其核心作用是waits for this thread to die,但也可以写入参数控制其时长,以ms或ms+ns为单位。 这里用前面说的两种方法解释了run()方法:①construed using a separate Runnable
相关文章
相关标签/搜索