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
Is a method a function?
What are daemon Threads in java?
How to Sort Strings which are given in List and display in ascending order without using java api.
what is bmg file and how to create that files?what will it contailn?
How do you convert an int to a double in java?
Is integer passed by reference in java?
What is port number in java?
Which is faster call by value or call by reference?
What is javac_g?
How do you use compareto in java?
How do you sort arrays in java?
please send me hr interview questions in it industry
Why java is a platform independent? Explain
What is difference between identifier and variable?
Explain the significance of listiterator.