Whether you write
class Worker extends Thread or class Worker implements Runnable, you must define the code the thread executes by overriding/implementing one method. Which one?- astart()
- bcall()
- crun()✓
- dexecute()
Explanation:Whether a class extends Thread or implements Runnable, the thread's task is defined by overriding/implementing run(). start() launches a new OS thread and internally calls run(); it should never be invoked directly to 'start work'.