DEV Community

loading...

Discussion on: Runnable vs Threads

Collapse
oshanoshu profile image
Oshan Upreti Author

That's absolutely right. Thank you for your observation.
The point I wanted to prove here was that we can't create threads extending the Thread class that operates on the same object. And, that's the advantage of using the Runnable interface over the Thread class.