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
How can you traverse a linked list in java?
what is meant wrapper classes?
What is the difference between procedural and object-oriented programs?
What is locale?
Which non-unicode letter characters may be used as the first character of an identifier?
What is jdbc api?
Which is the class in java?
If a method is declared as protected, where may the method be accessed?
What is difference between static class and normal class?
Can you add null to a list java?
Does anyone still use java?
Can interface be private in java?
Give the hierarchy of inputstream and outputstream classes.
How many bytes is a string?
What does s mean in regex?