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
Explain about assignment statement?
What are the various access specifiers in java?
What is append in java?
What is a void method java?
What is the use of java?
What are the fileinputstream and fileoutputstream?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Compare java and python.
What is a java string?
What is xslt in java?
What do you understand by casting in java language?
When does a class need a virtual destructor?
Can we write class inside a class in java?
What is a final class ?
Can we have this () and super () together?