Answer Posted / harish
There are two different ways to create a Thread. One is
extends Thread class and implement Runnable Interface.
Better to go for Runnable interface. It will have a method
run(). You should override in the sub class. Even, you
can extend another class to the same thread class.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what are the activation groupworks?
What is glasgow?
Write a singleton program?
Can I map more than one table in a cmp?
what is a non-repeatable read?
How substring() method of string class create memory leaks?
What is the difference between java class and bean?
What are the purpose of introspection?
What is the map interface?
What is local interface. How values will be passed?
Explain the advantages and disadvantages of detached objects.
Name three component subclasses that support painting?
Where can I find seam examples and documentation?
Why do I get a duplicate name error when loading a jar file?
What is synchronization and why is it important?