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 is lexicographically smallest string?
What is a prefix function.write down a code to compute prefix function.
What is a blocking method in Java?
Can you add null to a list java?
What do you understand by java?
Which java ide is used the most?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What are different data structures in java?
What are the legal operands of the instanceof operator?
Does anyone still use java?
What methodology can be employed to locate substrings inside a string?
Can a set contain duplicates?
Does substring start with 0?
Is nan false?
Is it possible for a yielded thread to get chance for its execution again?