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
Is singleton thread safe in java?
How many bits is a boolean?
What is final method in java?
What do you mean by light weight and heavy weight components?
What is bifunction in java?
Why java is call by value?
What is valid keyword in java?
What is finally block?
Can a class extend 2 classes in java?
What is the difference between the font and fontmetrics classes in java programming?
What will happen to the exception object after exception handling?
Explain method local inner classes ?
What is the difference between multitasking and multithreading in Java
define polymorphism in java
What are the types of arrays in java?