why Runnable interface is preferable than extending the
Thread class?

Answer Posted / susheeel

Many Java programmers feel that classes should be extended
only when they are enhanced or modified in some way.So,if
you will not be overriding any of Thread's other methods,it
is probably best simply to implement Runnable.

Is This Answer Correct ?    32 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a method a procedure?

773


Which container method is used to cause a container to be laid out and redisplayed in java programming?

848


What is the tradeoff between using an unordered array versus an ordered array?

918


is it possible to instantiate the math class?

725


What is unicode datatype?

714


What are the differences between string and stringbuffer?

839


Why is a singleton bad?

753


What is the difference between notify and notifyall method?

820


What is singleton class example?

790


How many return statement are allowed in a function?

652


Define jit compiler?

844


What are the new features in java 8? Explain

738


Is object a data type in java?

847


What is an argument in java?

699


What is the default access specifier for variables and methods of a class?

843