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 are main features of oop?
Why is abstraction needed?
Can an interface inherit a class?
what is different between oops and c++
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
what type of question are asked in thoughtworks pair programming round ?
What is the example of polymorphism?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is the significance of classes in oop?
What is abstraction encapsulation?
How do you use inheritance in unity?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
How oops is better than procedural?
What is an example of genetic polymorphism?
write a programe to calculate the simple intrest and compund intrest using by function overlading