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 the purpose of declaring a variable as final?

972


Explain runtime exceptions?

1182


Explain how to force the garbage collection in java.

970


What are white spaces in java?

1050


What classes of exceptions may be thrown by a throw statement?

969


Why are parameters used in functions?

1020


What are heap memory and stack memory and what are memory tables.

990


Difference between final and effectively final ?

1109


What is mean by encoding?

1083


Is arraylist an object in java?

1169


What is a vararg?

1038


Explain restrictions for using anonymous inner classes?

1095


Can a source file contain more than one class declaration?

1002


What is file in java?

1038


Discuss 2D arrays.

1051