why Runnable interface is preferable than extending the
Thread class?

Answer Posted / suresh

u know that java not supporting multiple inheritance.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 runnable interface.

Is This Answer Correct ?    115 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you traverse a linked list in java?

696


what is meant wrapper classes?

619


What is the difference between procedural and object-oriented programs?

536


What is locale?

612


Which non-unicode letter characters may be used as the first character of an identifier?

608






What is jdbc api?

546


Which is the class in java?

526


If a method is declared as protected, where may the method be accessed?

543


What is difference between static class and normal class?

539


Can you add null to a list java?

597


Does anyone still use java?

592


Can interface be private in java?

558


Give the hierarchy of inputstream and outputstream classes.

624


How many bytes is a string?

578


What does s mean in regex?

557