問答題

【簡答題】程序中怎樣創(chuàng)建線程?

答案: 創(chuàng)建線程對象有兩種方法,一是通過繼承Thread類,一是向Thread類傳遞一個Runnable對象。
微信掃碼免費搜題