What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class?
Answer Posted / harish
When u extend a Thread each of your thread has a unique
object associated with it,where as with Runnable interface
may threads share the same object instance.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is a char always 1 byte?
Can you sort a list in java?
What are the special characters?
Can we execute java program without main method?
What is array length in java?
explain what is transient variable in java?
What exactly is java?
Is set sorted in java?
What is a function easy definition?
What is arraylist class in java?
Explain the Propertie sof class?
What is a variable and constant?
What is the use of static methods?
In java, what is the difference between method overloading and method overriding?
Can we overload run() method in java?