• 2022-06-28
    方法 resume( ) 负责重新开始哪个线程的执行?( )
    A: 被 stop( ) 方法停止的线程
    B: 被 sleep( ) 方法停止的线程
    C: 被 wait( ) 方法停止
    D: 被 suspend( ) 方法停止
  • D

    内容

    • 0

      resume()方法负责恢复被______方法挂起的线程。 A: sleep() B: stop() C: wait() D: suspend()

    • 1

      下列( )方法和resume()方法相互搭配,使线程停止执行,然后调用resume()方法恢复线程。 A: suspend() B: stop() C: yield() D: interrupt()

    • 2

      和resume()方法相互搭配,使线程停止执行,然后调用resume()方法恢复线程的是( )。 A: interrupt() B: stop() C: suspend() D: yield()

    • 3

      如果线程调用下列方法,不能保证使该线程停止运行的是() A: sleep( ) B: stop( ) C: yield( ) D: wait( )

    • 4

      下列哪个方法和resume( )方法相互搭配,使线程停止执行,然后调用resume( )方法恢复线程 A: java B: javac C: javap D: javadoc