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 team leaders assign work for the team member like through papers,word document

1 Answers   TCS,


Differences between applications and applets?

3 Answers  


How to determine SGA site?

0 Answers   Wipro,


When a thread blocks on i/o, what state does it enter?

0 Answers  


What are the advanatages of RMI ?

1 Answers   HGS,


can a static method be overridden

41 Answers   IBM, SolutionNET,


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,


What are different types of controls in AWT?

11 Answers   IBM,


What happens when a thread cannot acquire a lock on an object?

0 Answers  


In a multitiered application which tier is the browser in?

10 Answers   Adobe,


Explain the life cycle of servlet?

3 Answers   Cognizant, HCL,


difference between applicationserver and webserver

4 Answers   SolutionNET,


Categories