why Runnable interface is preferable than extending the
Thread class?
Answer Posted / rameshkrishna
imolimen Runnabule inerface and extends Thread functionally
both are same.But implimenting RunnebleInterface more
advantage because of there is possibility extends more then
one class and also we can override run() only once.
Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What are the two parts of a conditional statement?
Discuss 2D arrays.
Can we override data members in java?
what are the methods in object?
what is the difference between a threads start() and run() methods? : Java thread
Can private method static?
Explain differences between collection api and stream api?
What is parsing and its types?
Why pointers are not used in java?
What do you mean by compiler?
Explain about instanceof operator in java?
What is e java?
What is boolean example?
What is a map? What are the implementations of map?