how many ways to create Thread and which one is good?
runnable interface ot Thread class?
Answer Posted / balaji@cse@crr engg@eluru
types of creating thread
1)extend thread class
2)implement by runnable interface
=>2"nd method is good because by using interface we can
implement multiple inheritance
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
How do you insert a line break?
Differences between traditional programming language and object oriented programming language?
Why stringbuilder is not thread safe?
What is a generic data type?
In how many ways we can create threads in java?
How objects are stored in java?
Why does java does not support multiple inheritance? Explain
What is a parameter in simple terms?
Which is better arraylist or vector?
What is arrays fill in java?
What is the difference between a switch statement and an if statement?
What is the difference between choice and list?
When we should use serialization?
Explain differences between checked and unchecked exceptions in java?
What two classes are used to read data only?