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

What is the independent variable in an experiment?

549


What is a boolean structure?

559


How can we find the actual size of an object on the heap?

806


Why chararray() is preferred over string to store the password?

528


Is null in java?

553






Name few java 8 annotations ?

566


Explain about member inner classes?

591


How do you invoke a method?

539


What is the use of conditional statement?

564


Is void a data type?

540


Which of the classes will have more memory allocated?

541


Can we declare register variable as global?

515


Can variables be used in java without initialization?

554


How to convert string to char and vice versa?

517


Can memory leak happen java?

598