In what situation, an IllegalThreadStateException will be thrown?

Q. In what situation, an IllegalThreadStateException will be thrown?
A:
1) If the thread was already started, you call start() again.
2) If this thread is active, you call setDaemon().
3) A deprecated method countStackFrames() also throws
IllegalThreadStateException.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章