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 is meant by final class?
Why is stringbuffer thread safe?
What are annotations in java?
What are the types of literals?
What do you know about java?
What is exception hierarchy in java?
Why put method is idempotent?
Is upper case in java?
Define an abstract class with reference to java.
What is empty list in java?
What is merge sort in java?
What is arrays sort in java?
How do I get a substring?
In which language java is written?
How do you get the length of a string in java?