+ 3
What is the difference between implement Runnable interface and extends the Thread?
Why do we need Runnable interface when we have Thread class.... https://code.sololearn.com/cVPV6d31exFh/?ref=app
7 Réponses
+ 1
Any class whose instance needs to be executed by a thread should implement the Runnable interface.
More details are provided in this link,
https://www.callicoder.com/java-multithreading-thread-and-runnable-tutorial/
Good Luck~
+ 1
Not sure but I upvoted
+ 1
Stack has an excellent explanation! Research there!
0
Let me try