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

what is JTS?

1 Answers  


Which Taglibraury you used in your project? plz send me ans....which we r using generally

2 Answers  


Where we can write Rmi registry in the code, without having to write it at the command prompt?

0 Answers  


What is Bootstrapping in RMI?

1 Answers  


What must a class do to implement an interface?

0 Answers  


How will the struts know which action class to call when you submit a form?

6 Answers   HeadStrong,


What is RRL?

1 Answers  


What are the JSP implicit objects ?

1 Answers   eMids,


What is multi-tasking? Types?

1 Answers  


How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration

1 Answers  


diff mvc1 and mvc2 wahts is mean by servlet chaining?

1 Answers   SolutionNET,


What are the ways to define classes that can be run as threads?

1 Answers   KPIT,


Categories