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


Please Help Members By Posting Answers For Below Questions

What are the different types of sorting in java?

539


What is private public protected in java?

568


What is meant by data hiding in java?

636


Write a method that will remove given character from the string?

569


What is functional interface in javatpoint?

508






Why is it called boolean?

521


How many bits are in a sentence?

579


What is the difference between abstraction and encapsulation?

559


What are mutable classes?

521


Is there any tag in htm to upload and download files?

604


Is hashmap thread safe?

554


What about main thread in java?

644


What is Applet Stub Interface ?

1962


Can we sort hashmap in java?

528


Can java arraylist hold different types?

489