how many ways to create Thread and which one is good?
runnable interface ot Thread class?
Answer Posted / srinu
Two ways of creating Thread
1)By extending java.lang.Thread class
2)By implementing java.lang.Runnable interface
Here 2"nd way is good because by using interface we can
implement multiple inheritance in our class
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is string and its types?
What is collection class in java? List down its methods and interfaces.
Why is it called boolean?
How do I start learning java?
What is a string token?
What is java in simple terms?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is polymorphism java example?
Discuss 2D arrays.
What is general methodology?
How would you use Bubble Sort to sort the number of elements?
What is methodological theory?
What are the drawbacks for singleton class?
How do you use wildcards?
How do you use nextline in java?