找考题网-背景图
单项选择题

判断下列语句哪个正确()。

A.在线程休眠时,sleep方法会占用处理器时间
B.将方法声明为synchronized,就可以确保不会发生死锁
C.不提倡使用Thread类的suspend方法,resume方法和stop方法
D.以上描述都正确

热门试题