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
c++ program to swap the objects of two different classes
What is abstraction example?
What is the real life example of polymorphism?
What do you mean by Encapsulation?
what is the drawback of classical methods in oops?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is for loop and its syntax?
What is the types of inheritance?
What is pure oop?
Is react oop?
What language is oop?
Can private class be inherited?
What is purpose of inheritance?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What are functions in oop?