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
Why singleton pattern is better than creating singleton class with static instance?
Can variables be used in java without initialization?
Is intellij better than eclipse?
What is the difference between final, finally and finalize()?
What is the difference between pass by reference and pass by pointer?
What is integers and example?
Difference between keyword and identifier.
Can we have more than one package statement in the source file?
What is arrays fill in java?
Does windows 10 need java?
What is a boolean flag in java?
Is integer passed by reference in java?
What is an example of a constant variable?
what is mena by object block any what is the use of that
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.