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
Why is flag used in java?
What is a generic type?
What is a boolean structure?
What is a singleton factory?
What isan abstract class and when do you use it?
List any five features of java?
How can you share data between two thread in Java?
What is are packages?
What is the preferred size of a component in java programming?
Is string serializable in java?
How to handle a web browser resize operation?
Write a program to reverse array in place?
Explain the difference between abstract class and interface in java?
What is fail fast in java?
What is exception hierarchy in java?