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 do you set security in applets?
whats is mean by connectionpooling
To identify IDL language what mapping mechanism is used?
What is a sessionfactory? Is it a thread-safe object?
what is the proxy pattern?
What is the difference between a menuitem and a checkboxmenuitem?
What is diffennce between AWT & SWING?
what is difference between object state and behaviour?
difference between sql exception class and sql warning class
How do u supress the parameters from the displaying in the url?
How do you iterate in Hashmap?
What is the diffrence between a local-tx-datasource and a xa-datasource?