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

How do you set security in applets?

1 Answers   IBM,


whats is mean by connectionpooling

0 Answers   SolutionNET,


To identify IDL language what mapping mechanism is used?

0 Answers  


What is a sessionfactory? Is it a thread-safe object?

0 Answers  


what is the proxy pattern?

1 Answers  


What is the difference between a menuitem and a checkboxmenuitem?

0 Answers  


What is diffennce between AWT & SWING?

4 Answers  


what is difference between object state and behaviour?

3 Answers  


difference between sql exception class and sql warning class

1 Answers  


How do u supress the parameters from the displaying in the url?

2 Answers  


How do you iterate in Hashmap?

1 Answers   HCL, Infotech,


What is the diffrence between a local-tx-datasource and a xa-datasource?

0 Answers  


Categories