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 local datetime api in java8?
What does java edition mean?
Explain differences between checked and unchecked exceptions in java?
What is collection api?
Name few java util classes introduced with java 8 ?
How many ways can we create the string object?
Differentiate between static and non-static methods in java.
What is a java object and java application?
Is linked list a linear or non-linear data structure?
What is unmodifiable list in java?
What does \ mean in regex?
How do you include a string in java?
What is the role of garbage collector in java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
when you will synchronize a piece of your code? : Java thread