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 the purpose of the finally clause of a try-catch-finally statement?
What is meant by Superconductivity?
Explain the steps in details to load the server object dynamically?
What are the advanatages of RMI ?
How to determine applet?s height and width?
What is jboss?
How u validate date in DD/MM/YY format. and how u validate money in ur jsp
3 Answers Ashok Leyland, Satyam, Tech Mahindra, Tomax,
What do you know about seam?
What state does a thread enter when it terminates its processing?
What is the difference between a stub and a skeleton?
9 Answers ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,
What state a thread enters, When it blocks on I/O?
What invokes a thread?s run() method?