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

'A class is a template for an object' explain this statement.

544


Can we access the non-final local variable, inside the local inner class?

513


What is a numeric format?

565


What is the java idl system?

581


What is static data type in java?

540






Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

570


What is the difference between stringbuffer and stringbuilder class?

567


What is java full form?

526


Can a string be null?

538


What is the purpose of using the java bean?

566


What is class variable java?

581


What is the main use of generics in java?

508


What is data object example?

526


What is arrays fill in java?

541


Define jre i.e. Java runtime environment?

572