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 is meant by local variable and instance variable?
What is not object oriented programming?
Is the milky way in a void?
Will set allow duplicates in java?
What is the escape character in java?
Explain the use of sublass in a java program?
What is boolean keyword in java?
What about main() method in java ?
Tell me the latest versions in java related areas?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
What are predefined functions?
What do you understand by abstract classes?
Why does abstract class have constructor?
What is the difference between preparedstatement and statement in java?
Is java still necessary?