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
explain the concept of virtual method invocation in polymorphism in detail?
What do you mean by composition in java?
Can we declare an array without size in java?
Can you explain the cs option of java interpreter?
Why to use nested classes in java?
Give the hierarchy of inputstream and outputstream classes.
What is the indent key?
What is a static method in java?
Is array synchronized in java?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What do you mean by Function Overloading in java?
What is the purpose of sizeof operator?
What is the difference between a switch statement and an if statement?
What is the difference between access specifiers and access modifiers in java?
What is mysql driver class name?