Hi Friends, can you give difference between extending thread
class and implementing runnable interface.
Answer Posted / murali.25
both will achieve the same functionality. Usually we implement runnable interface because if we extend thread and if we want to any application specific class, its not possible because java doesnt support multiple inheritance.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Differences between C and Java?
What is primitive data type in java?
What is the inheritance?
What is floating data type?
Explain an algorithm to find depth of a binary tree.
What does += mean coding?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is the purpose of default constructor?
What is null object in java?
What is an example of declaration?
What are the different types of garbage collectors in java?
describe method overloading
Why declare Main() inside the class in java ?
Explain the difference between arraylist and linkedlist in java?
What is the difference between serializable and externalizable interface?