why Runnable interface is preferable than extending the
Thread class?
Answer Posted / susheeel
Many Java programmers feel that classes should be extended
only when they are enhanced or modified in some way.So,if
you will not be overriding any of Thread's other methods,it
is probably best simply to implement Runnable.
Is This Answer Correct ? | 32 Yes | 5 No |
Post New Answer View All Answers
What is complexity and its types?
What are the drawbacks of reflection?
What is difference between iterator and enumeration in java?
What is double parsedouble in java?
Why java is a platform independent? Explain
What is the difference between Grid and Gridbaglayout?
When should a function throw an exception?
What is variable and example?
What are advantages of exception handling in java?
Distinguish between a predicate and a function?
What is method overloading with type promotion?
Does constructor be static?
When should I use a singleton?
What is the relationship between clipping and repainting under awt?
What are the disadvantages of object oriented programming?