Hello group,
I had found two answers for the difference between extending
Thread and implementing Runnable interface........
1) If our class is already extending another class we can't extend Thread class because
java doesn't support multiple inheritance, so we have left only one choice that is implementing Runnable interface....
2) when you extend a thread each of your thread has a unique object associated with it, whereas with Runnable, many threads share the same object instance..
I can't understand the 2nd point...
Thanks in advance,
G.Sathish kumar.
Certified on SCJP 5.0, OCPJWCD, Spring3.2, OCEJWSD, CKAD