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 string is immutable with example?
What is off heap memory?
Is a string literal?
What is a local block?
Which command from the jdk compiles a java program?
What is the difference between access specifiers and access modifiers in java? 16
What do you mean by boolean?
What is += mean in java?
Can we able to pass objects as an arguments in java?
What is java virtual machine? Explain
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
Which java collection does not allow null?
What is ‘is-a ‘ relationship in java?
Is there any limitation of using inheritance?
Explain the purpose of garbage collection in Java?