Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


To make an object to begin executing as a separate thread,
what method is used?

Answers were Sorted based on User's Feedback



To make an object to begin executing as a separate thread, what method is used?..

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

To make an object to begin executing as a separate thread, what method is used?..

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

Post New Answer

More Advanced Java Interview Questions

Name three component subclasses that support painting?

0 Answers  


What do you mean by Socket Programming?

0 Answers  


Can we have more than one action servlet?

7 Answers   HP,


diff vector arraylist

4 Answers   Saka Solutions,


i want documentation of text file splitter & merger of advanced java

1 Answers   Infosys,


How JNDI is used in JMS ?

1 Answers  


How messaging services are done, before release of JMS?

0 Answers  


What if the static modifier is removed from the signature of the main method?

0 Answers  


whats is mean by tiles in struts

2 Answers   SolutionNET,


What are externizable interface?

0 Answers  


What restrictions are placed on the values of each case of a switch statement?

0 Answers  


Why won’t the jvm terminate when I close all the application windows?

0 Answers  


Categories