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
How can you read content from file in java?
What are examples of modifiers?
What are parsing rules?
What are the three parts of a lambda expression? What is the type of lambda expression?
What access modifiers can be used for variables?
How to read and write image from a file ?
Difference between process and thread?
List out five keywords related to exception handling ?
How many types of design patterns are there?
What is the difference between java applets and applications?
What is the difference between && and & in java?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Can we make a constructor final?
What are assembly attributes?
Why collection doesn’t extend cloneable and serializable interfaces?