whats the advantage of implementing runnable over extending thread
thato21math 0 Newbie Poster
Recommended Answers
Jump to PostExtending Thread indicates (in OO design) that you're changing the behaviour of Thread itself.
You rarely if ever want to do that.For most if not all purposes you'll ever encounter, implementing Runnable is the correct thing to do.
All 4 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
jwenting 1,905 duckman Team Colleague
shedai 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.