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()

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does || || mean in math?

936


What do you mean by Function Overloading in java?

1177


What are exception handling keywords in java?

1034


Explain wrapper classes in java?

991


What is the difference between yield() and sleep()?

1012


Why is singleton instance static?

991


What is the size of an array?

1031


How can you traverse a linked list in java?

1127


What is boolean logic?

1013


How much is a java license?

926


Which is bigger float or double java?

978


Is logger a singleton?

947


What is nextint java?

1056


What data type is a string?

1010


What is map and hashmap in java?

1062