Multiple choice technology programming languages

what are the methods to prevent thread execution

  1. wait()

  2. sleep()

  3. stop()

  4. start()

Reveal answer Fill a bubble to check yourself
A,B Correct answer
Explanation

wait() puts a thread in a waiting state until notified, while sleep() pauses execution for a specified time - both prevent thread execution. stop() is deprecated and unsafe (can cause corruption), and start() begins execution rather than preventing it.