why Runnable interface is preferable than extending the
Thread class?
Answer Posted / srinu
you know that java does not supporting multiple inheritance
through classes .if u extend Thread class,u can't extend any
class which you required other than thread class.if u are
implementing runnable interface u can extend any class which
you required other than thread class.this is main advantage of
implementing java.lang.Runnable interface.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is lexicographically smallest string?
What is meant by tab pans?
Are static members inherited to sub classes?
When is update method called?
What is java object name?
What are triggers in DB? Explain their types. How do they work?
What is meant by string is immutable?
What are the object and class classes used for?
What is an 8 bit word?
Is logger a singleton?
Is oracle charging for java?
What restrictions are placed on method overloading?
What is method overloading with type promotion?
Can we compare two strings in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.