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
How much ram can a 64 bit processor theoretically?
What’s meant by anonymous class?
how can i use a nonsynchronized hashtable?
What is null mean in java?
How to sort list of list in java?
What is a ?
What is the purpose of extern variable?
What is difference between throw and throws ?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
Is java based on c?
worst case complexities of Quick sort and Merge sort.
Define canvas?
How many bits is a boolean?
What is a newline character in java?
Which collection allows duplicate values in java?