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
Why declare Main() method as a static in java ?
What is jvm? How its run?
What is a heavyweight component?
Why isn’t there operator overloading?
What does singleton mean in java?
How to perform bubble sort in java?
What are the disadvantages of object oriented programming?
What is the maximum size of array in java?
when to use ArrayList and when to use HashMap in webApplication.
What mechanism does java use for memory management?
What is the formula to calculate percentage?
Can we declare an array without size in java?
What is a constructor, constructor overloading in java?
How do we access static members in java?
What is += mean in java?