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 constructor and how many types of constructors are used in java?
What is the difference between a switch statement and an if statement?
Why are the methods of the math class static?
Why char array is preferred over string for storing password?
What are autoboxing and unboxing? When does it occur?
What super () does in java?
What is the purpose of the system class in java programming?
Java.util.regex consists of which classes?
What is boolean query?
Can you explain inner class.
How big is a 64 bit float?
Which category the java thread do fall in?
What is floor math?
Explain Basics of OOP Language in java
What are recursive functions? Give some examples?