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 exception handling keywords in java?
Are static members inherited to sub classes?
Where pragma is used?
When object is created and destroyed?
Why does java doesnt suuport unsigned values?
What is wrapper class example?
Discuss about garbage collector in Java.
What is the default execution method in java?
Why for each loop is used?
why not override thread to make a runnable? : Java thread
What are the java ide’s?
How many boolean functions are there?
What causes memory leaks in java?
What is http client in java?
What is a hashmap used for?