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
What all methods are used to prevent thread execution ?
What exactly is methodology?
What is string in java?
What is difference between core java and java ee?
What about main() method in java ?
What are data types in oop?
What is finalize()? Is finalize() similar to a destructor?
what is predefined function in java?
Explain restrictions for using anonymous inner classes?
What is the difference between a switch statement and an if statement?
How do you declare an array that will hold more than 64KB of data?
What do you mean by flow of struts?
Why do we use return statement?
Tell me the latest versions in java related areas?
What is the tradeoff between using an unordered array versus an ordered array?