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 the independent variable in an experiment?
What is a boolean structure?
How can we find the actual size of an object on the heap?
Why chararray() is preferred over string to store the password?
Is null in java?
Name few java 8 annotations ?
Explain about member inner classes?
How do you invoke a method?
What is the use of conditional statement?
Is void a data type?
Which of the classes will have more memory allocated?
Can we declare register variable as global?
Can variables be used in java without initialization?
How to convert string to char and vice versa?
Can memory leak happen java?