Difference between Thread Class and Runnable interface
The only difference between implementing Runnable and extending Thread is that by extending Thread, each of your threads has a unique object associated with it, whereas with Runnable, many threads share the same object instance.
No comments:
Post a Comment