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
What are the different types of sorting in java?
What is private public protected in java?
What is meant by data hiding in java?
Write a method that will remove given character from the string?
What is functional interface in javatpoint?
Why is it called boolean?
How many bits are in a sentence?
What is the difference between abstraction and encapsulation?
What are mutable classes?
Is there any tag in htm to upload and download files?
Is hashmap thread safe?
What about main thread in java?
What is Applet Stub Interface ?
Can we sort hashmap in java?
Can java arraylist hold different types?