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
What are register variables what are the advantages?
What is an exception? difference between Checked and Unchecked exception in Java
Can a final variable be manipulated in java?
Define a java class.
Can an interface have a constructor?
Name few java.lang classes introduced with java 8 ?
How many techniques can be employed to create a string object?
What are the differences between path and classpath variables?
when should you use stringbuilder class in a program?
What do you mean by singleton class in java?
What is the vector class in java programming?
What is vector capacity in java?
What is the difference between the boolean & operator and the && operator in java programming?
What is the use of System class?
What is a ternary operator in java? What is an interface?