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
Is a method a procedure?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is the tradeoff between using an unordered array versus an ordered array?
is it possible to instantiate the math class?
What is unicode datatype?
What are the differences between string and stringbuffer?
Why is a singleton bad?
What is the difference between notify and notifyall method?
What is singleton class example?
How many return statement are allowed in a function?
Define jit compiler?
What are the new features in java 8? Explain
Is object a data type in java?
What is an argument in java?
What is the default access specifier for variables and methods of a class?