how to create thread in java?
Answer Posted / vijay tandel
Thread can be created by
1. Extending Thread Class
2. implementing Runnable interface
The second approach is better as if you want to use multiple
inheritance, interface is better option.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is object and example?
What is purpose of inheritance?
What is pure oop?
What is object in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Write a program to reverse a string using recursive function?
How do you use inheritance in unity?
What is inheritance in simple words?
Why multiple inheritance is not allowed?
What are the advantages of polymorphism?
Why is object oriented programming so hard?
write a C++ program for booking using constructor and destructor.
What is polymorphism explain?
Can we define a class within the interface?
What are objects in oop?