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 is the major advantage of external iteration over internal iteration?
Give a practical example of singleton class usage?
What is meant by distributed application? Why are we using that in our application?
What is append in java?
Can a class extends itself in java?
What is comparator in java?
What is function and its uses?
How big is a pointer?
What is update method called?
What does math floor () do?
How do you create a method in java?
Can a main method be overloaded?
Differences between traditional programming language and object oriented programming language?
What is a class object?
What is the purpose of skeleton and stub?