Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
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, 7311👍, 0💬
Popular Posts:
How To List All Values of Submitted Fields? - PHP Script Tips - Processing Web Forms If you want lis...
What is AL.EXE and RESGEN.EXE? In the previous question you have seen how we can use resource files ...
Can an anonymous class be declared as implementing an interface and extending a class? An anonymous ...
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
What are unadjusted function points and how is it calculated? Unadjusted function points = ILF + EIF...