Multiple choice technology programming languages

which methods would prevent the execution of a thread? (Choose all that apply)

    1. sleep()
    1. yield()
    1. run()
    1. join()
Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

Methods that prevent thread execution: sleep() (pauses thread), yield() (suggests scheduler to switch), join() (waits for another thread to die). Option C (run()) is the thread's entry point but doesn't prevent execution - it's called by the JVM to start the thread. Thus A, B, D are correct.