how many ways to create Thread and which one is good?
runnable interface ot Thread class?
Answer Posted / guest
Two ways to create threads
1)by creating thread class
class classname extends Thread
{
}
2)By converting class to thread ie using Runnable interface
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
Why doesn't the java library use a randomized version of quicksort?
Can java hashmap have duplicate keys?
What is a constructor, constructor overloading in java?
What is constructor chaining in java?
Can you instantiate the math class?
What is parsing in java?
What is a data structure java?
What does singleton class mean?
What is "this" keyword in java? Explain
Is a char always 1 byte?
What is the purpose of skeleton and stub?
Difference between current previous versions of Java?
What is identifier in java?
How many threads can java run?
Why is stringbuffer not immutable?