how to create thread in java?
Answer Posted / javamasque
Threads are created in three ways
1. Sub-class Thread: Create sub-class of java.lang.Thread class
2. Runnable object: Implementing java.lang.Runnable interface.
3. Callable object: Implementing java.lang.Callable interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism and its types?
What is encapsulation selenium?
What is difference between pop and oop?
What is an interface in oop?
What does oop mean in snapchat?
What is polymorphism explain?
Why is abstraction used?
Explain virtual inheritance?
Is enum a class?
What is abstract class in oop?
State what is encapsulation and friend function?
What is variable example?
What is the real time example of encapsulation?
What is an advantage of polymorphism?
Is react oop?