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
What is a module function?
What is a concrete classes? Is Java object class is concrete class?
What is number data type in java?
State the merge-sort principle and its time complexity.
What is double in java?
What is difference between variable declaration and definition?
what is comparable and comparator interface?
Which graphs are functions?
What is the difference between stringbuffer and stringbuilder?
Which is bigger float or double?
what is a working thread? : Java thread
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is java reflection?
What is an argument java?
What does math floor () do?