Hi Friends, can you give difference between extending thread
class and implementing runnable interface.
Answer Posted / abnish kumar rajput
If we are going for using extend with thread then there is
no need to create thread object because we have
automatically all the properties of thread class ,then reuse
all these properties.whereas If are going for implement with
thread then we have to create of thread class and then we
have to override all the methods of thread class.because of
abstract class .
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are java methods?
Can we sort array in java?
What is jee6?
What are keywords give examples?
Can we catch more than one exception in a single catch block?
how we can make a write-only class in java?
What is an empty class? What functionality does it offer in Java?
Explain method overloading?
What is bigger kb or mb?
What is the main advantage of passing argument by reference?
What are methods?
In java, how many ways you can take input from the console?
What is another word for methodology?
What is java basic concept?
What is the use of private static?