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 the different between get and post?
What is bubble sort in java?
What are internal and external variables?
Explain the private field modifier?
How do you stop a thread in java?
What are the 7 types of characters?
What is a variable declaration?
What do bitwise operators do?
How can we find the actual size of an object on the heap?
What are the rules for naming an array?
What is console based application in java?
describe synchronization in respect to multithreading? : Java thread
What is abstraction in java?
How do you sort a string in alphabetical order in java?
How do you do exponents in java?