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 aggregate functions explain with examples?
what r advatages of websphere? & how to deploy?
What do you mean by static variable?
What is string [] args?
Is array a class in java?
Is void a type?
What do you mean by hashing?
What is purpose of keyword void?
Can we create our own daemon thread?
What is mean by exception?
What is the functionality of the stub?
What is the purpose class.forname method?
what is a green thread? : Java thread
What are different data types?
How do you sort data in java?