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 is oop in java?

1028


what is the difference between future and callable interface in java?

1214


Explain the importance of finally block in java?

940


What is the memory leak in java?

1019


What are the different types of inheritance in java?

976


What is an iterator java?

1080


How is Object Oriented Programming different from Procedure Oriented Programming?

1037


What is type inference in java8?

1027


What is the difference between checked exception and unchecked exception?

1003


What is the argument in java?

895


What is unmodifiable list in java?

946


What is return null in java?

943


How can a gui component handle its own events?

1087


Can we overload the methods by making them static?

982


How do you calculate roots in java?

1069