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 proper subset?
What do you mean by constant time complexity?
Does constructor creates the object ?
How can we make sure main() is the last thread to finish in java program?
Is singleton class thread safe?
What is the use of predicate in java 8?
What advantage do java's layout managers provide over traditional windowing systems?
What is super keyword explain with example?
Explain implementation and how is it different from conversion?
Which class is the superclass for all the classes?
What is an image buffer?
What is an example of character?
how to deploy tomcatserver to weblogic server? write d following steps?
What is an array in java?
What will happen if static modifier is removed from the signature of the main method?