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
What is the java reflection api? Why it’s so important to have?
How many types of memory areas are allocated by JVM in java?
Can you change array size in java?
What are the restrictions imposed on method overriding?
Why do we need strings in java?
What is a singleton class? Give a practical example of its usage.
Explain about static imports in java?
How do you check if a string contains only numeric digits?
Difference between static and dynamic class loading.
What do you mean by inner class in java? Explain
Does treeset allow null in java?
Write a program to solve producer consumer problem in java?
Explain about map interface in java?
How do you achieve singleton?
What are the disadvantages of object oriented programming?