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 |
What is a task?s priority?
What is synchronization and why is it important?
What are the advanatages of RMI ?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
If your ui seems to freeze periodically, what might be a likely reason?
In howmany ways a thread can be created?
What is abstract schema?
whats is mean by tiles in struts
What are the services in RMI ?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
How to determine SGA site?
Do you think that java should have had pointers?