Question: What is the main advantage of implementing the Runnable interface over extending the Thread class in Java? Question 1 options: Implementing the Runnable interface allows
What is the main advantage of implementing the Runnable interface over extending the Thread class in Java?
Question options:
Implementing the Runnable interface allows us to add more interfaces if they are needed in the future.
Threads created using Thread class are difficult to manage under race conditions.
Runnable interface allows us to impose more control over threads at runtime.
The class that implements the Runnable interface runs faster.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
