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
Explain about collection interface in java?
How hashmap increases its size in java?
What is a war file?
Implement two stacks using a single array.
How many bytes are there?
Can you override static methods?
What is the function of http?
Difference between method overloading and overriding.
How would you use Bubble Sort to sort the number of elements?
What is the symbol for line break?
How can we avoid including a header more than once?
What are different data types?
What type of language is java?
How do you declare an array in java?
Why is the singleton pattern considered to be an anti pattern?