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
Explain the difference between arraylist and linkedlist in java?
What are actual parameters?
what r advatages of websphere? & how to deploy?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
what do you mean by classloader in java?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
How do you classify Dialog Box?
How do you start a thread?
How do you remove duplicates from an array in java?
How many types of gc are there in java?
What is command line argument
What is the difference between the direct buffer and non-direct buffer in java?
What is the use of default method in interface in java? Explain
What are different data types?
Give reasons supporting that string is immutable.