To make an object to begin executing as a separate thread,
what method is used?
Answer Posted / 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 |
Post New Answer View All Answers
Define prototype?
Which textcomponent method is used to set a textcomponent to the read-only state?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What value does read() return when it has reached the end of a file?
whats is statement and procedure
Are there books about seam?
What is a class loader? What are the different class loaders used by jvm?
How would you detect a keypress in a jcombobox?
What is clustering? What are the different algorithms used for clustering?
Explain how will the struts know which action class to call when you submit a form?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Java is fully object oriented languages or not?
Write a program to show synchronization?
How a component can be placed on Windows?