To make an object to begin executing as a separate thread,
what method is used?
Answers were Sorted based on User's Feedback
Answer / anonymous
Public void run() ---- method should be used.
myClass mc= new myClass();
Thread t1= new Thread(mc);
thatClass tc= new thatClass();
Thread t2= new Thread(tc);
t1.run();
t2.run();
Two Objects
Two Threads
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devarathnam c,kotagudibanda(po
Hi...
public void run();method in Runnable interface,which only
one method in Runnable interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
How messaging services are done, before release of JMS?
What is multi-tasking? Types?
Why are component architectures useful?
What is a compilation unit?
How do you iterate in Hashmap?
How can I avoid validating a form before data is entered?
what are the advantages of JTA over JTS?
What is UniCastRemoteObject and what is its use in RMI?
Difference between hashmap and hashtable?
What are the design considerations while making a choice between using interface and abstract class?
Can you give me a simple example of using the requiredif validator rule?
what is the Remote Stub?