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 |
Can a thread be a member of another thread?
types of exceptions
What exceptions are thrown by RMI?
How do you set security in applets?
Name the method to find, if a thread is active or not?
wahts is mean by dynavalidatorform in struts/
Can constructors be synchronized in java?
What’s jboss jbpm?
What is the highest-level event class of the event-delegation model?
What are the oops concept?
Why threads will block on I/O?
Difference Between getRequest and PostRequest?