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 is io stream in java?
What is command line argument
When should I use singleton?
Can we have a method name same as class name in java?
Is java owned by oracle?
How do I type unicode?
Where are local variables stored?
What does @override mean?
What is the difference between final, finally and finalize() in java?
What does g mean in regex?
Can we override tostring method in java?
What is the difference between heap and stack memory?
Implement a stack with push (), pop() and min() in O(1) time.
Explain heap sort?
What do you understand by classes in java?