Multiple choice

The code we want to execute has to be placed in a method ________ of the class which extends class Thread.

  1. start()

  2. run()

  3. first()

  4. exec()

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

The code we want to execute has to be place in a method run() of the class which extends class Thread. This function will automatically call by using start().