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 |
Name three component subclasses that support painting?
What do you mean by Socket Programming?
Can we have more than one action servlet?
diff vector arraylist
i want documentation of text file splitter & merger of advanced java
How JNDI is used in JMS ?
How messaging services are done, before release of JMS?
What if the static modifier is removed from the signature of the main method?
whats is mean by tiles in struts
What are externizable interface?
What restrictions are placed on the values of each case of a switch statement?
Why won’t the jvm terminate when I close all the application windows?