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 are getters and setters used?
What is externalizable?
Can we extend singleton class in java?
What is int argc char * argv?
What is difference between local variable and global variable?
What is the use of optional ?
How to check if linked list contains loop in java?
What is java Applet?
what is instanceof operator used in java?
Is it safe to install java on my computer?
What is an class?
What is a static method in java?
What's the purpose of static methods and static variables?
Explain JMS in detail.
How many types of interfaces are there?