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 team leaders assign work for the team member like through papers,word document
Differences between applications and applets?
How to determine SGA site?
When a thread blocks on i/o, what state does it enter?
What are the advanatages of RMI ?
can a static method be overridden
Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)
What are different types of controls in AWT?
What happens when a thread cannot acquire a lock on an object?
In a multitiered application which tier is the browser in?
Explain the life cycle of servlet?
difference between applicationserver and webserver