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 is the purpose of the notifyall() method?
Can I run seam with jdk 1.4 and earlier?
Can I have an action without a form?
Is it possible to stop the execution of a method before completion in a sessionbean?
Are enterprise beans allowed to use thread.sleep()?
What value does read() return when it has reached the end of a file?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
Describe responsibilities of Activator?
Where can I ask questions and make suggestions about seam?
What is difference between object state and behavior?
Can you control when passivation occurs?
What are the diff types of exception?
What is the difference between ear, jar and war file?
Is jvm a overhead?
Why does the tag url-encode javascript and mailto links?