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...


how can i kill thread without stop() and destroy()



how can i kill thread without stop() and destroy()..

Answer / ganesh slv

Hey..

{
Thread t = new Thread (this); // or may be in some other ways
t.start (); // starting the thread.

// some codes here

// Now you can stop you thread by assigning null to the
thread

t = null;
}

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More Core Java Interview Questions

How are commas used in the initialization and iteration parts of a for statement?

2 Answers  


Why is multithreading important?

0 Answers  


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

0 Answers   HCL,


Why java is considered dynamic?

0 Answers  


What do you know about the garbate collector?

0 Answers  


what is connection pooling with example?

3 Answers   Amdocs,


Distinguish between a predicate and a function?

0 Answers  


What is foreach loop in java?

0 Answers  


what is private constructor?what are the uses of writing private constructor in our program?

10 Answers  


explain multi-threading in java?

0 Answers  


Explain try and catch keywords in java?

0 Answers  


Is void a keyword in java?

0 Answers  


Categories