why Runnable interface is preferable than extending the
Thread class?
Answer Posted / rameshkrishna
imolimen Runnabule inerface and extends Thread functionally
both are same.But implimenting RunnebleInterface more
advantage because of there is possibility extends more then
one class and also we can override run() only once.
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What is the byte order of byte buffer?
Give us the name of the list layoutmanagers in java?
What methodology can be utilized to link to a database?
What is array length?
What is not object oriented programming?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
How do you sort words in java?
When is the finally clause of a try-catch-finally statement executed?
Write a program to calculate factorial in java?
Why wait and notify methods are declared in object class?
What is thread safe in java?
What are the 6 boolean operators?
What is java object name?
What is meant by class loader? How many types are there? When will we use them?
What is use of functional interface in java 8? Explain