Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Runable Interface and Thread
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?
✍: FYIcenter
Strategically speaking, threads created by implementing Runnable interface are more advisable. If you create a thread by extending a thread class, you cannot extend any other class. If you create a thread by implementing Runnable interface, you save a space for your class to extend another class now or in future.
2007-03-03, 7168👍, 0💬
Popular Posts:
How To Create an Add-to-Google-Reader Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS ...
How can I search for data in a linked list? Unfortunately, the only way to search a linked list is w...
What is the version information in XML? “version” tag shows which version of XML is used.
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow t...
How To Display a Past Time in Days, Hours and Minutes? - MySQL FAQs - Managing Tables and Running Qu...