A

Admin • 802.91K Points
Coach

Q. What is the purpose of the run() method in Java threads?

  • (A) To stop the thread
  • (B) To initiate the thread
  • (C) To define the code executed by the thread
  • (D) To pause the thread

Explanation by: Admin
run() contains the code that should execute in a separate thread.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.