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
相關文章
相關標籤/搜索