Which method must be defined by a class implementing the java.lang.Runnable interface?
-
void run()
-
public void run()
-
public void start()
-
void run(int priority)
B
Correct answer
Explanation
The Runnable interface requires implementing the run() method with public void run() signature. The method must be public (to be called by the thread) and void (no return value). Option A (void run()) lacks the public modifier, making it inaccessible. Option C (public void start()) is incorrect because Runnable doesn't define start(). Option D (void run(int priority)) has wrong signature and parameters. The exact signature public void run() is mandated by the interface contract.