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
Can there be an abstract method without an abstract class?
What type of language is java?
Can we create our own wrapper class in java?
Can you override a final method?
What is private public protected in java?
Explain the difference between throw and throws in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
How do you use compareto in java?
Is 0 a real number?
What is unicode with example?
Which methods are used during serialization and deserialization process?
What is purpose of find feature?
What is classes in java?
How is Object Oriented Programming different from Procedure Oriented Programming?
How can we avoid including a header more than once?