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
How do you explain polymorphism?
What are the 3 principles of oop?
Why do we use encapsulation in oops?
Write a program to reverse a string using recursive function?
What is the renewal class?
How can you overcome the diamond problem in inheritance?
What are the three main types of variables?
What is the difference between a mixin and inheritance?
What is inheritance and how many types of inheritance?
What is encapsulation selenium?
What is an interface in oop?
What does and I oop and sksksk mean?
Explain the advantages of inheritance.
What is stream in oop?
what is the drawback of classical methods in oops?