Hi Friends, can you give difference between extending thread
class and implementing runnable interface.
Answer Posted / ravikiran
By extending a thread class we will be restricted to the
implementation for single class only,by implementing
Runnable interface we will get extended for implementing
more than one thread
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the 8 data types in java?
How can we find the sum of two linked lists using stack in java?
What is the abstraction?
How does predicate work in java?
What are the advantages of java?
Java is pass by value or pass by reference? Explain
What is the difference between a window and a frame in java programming?
Explain about map interface in java?
What environment variables do I need to set on my machine in order to be able to run java programs?
What happens if we don’t define serial version uid?
Can classes declared using the abstract keyword cab be instantiated?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
What is the difference between procedural and object-oriented programs?
Why do we create public static method in java?
what is singleton in java?