why Runnable interface is preferable than extending the
Thread class?
Answer Posted / suresh
u know that java not supporting multiple inheritance.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 runnable interface.
| Is This Answer Correct ? | 115 Yes | 13 No |
Post New Answer View All Answers
What are the differences between forwarding () method and sendredirect() methods?
What is the use of coding?
Difference between final and effectively final ? Why is effectively final even required ?
What is the difference between method overriding and overloading?
what is session in java?
Which graphs are functions?
What is difference between stringbuffer and string?
How does class forname work in java?
What is :: operator in java 8?
What is meant by final class?
What are the different ways of implementing thread? Which one is more advantageous?
Can an interface be final?
What is variable length arguments in java?
Explain the available thread states in a high-level?
How do you declare a string variable?