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


what is the replacement method of stop() of thread

Answers were Sorted based on User's Feedback



what is the replacement method of stop() of thread..

Answer / swamireddy

SUSPEND()
because one thread apply suspend()
function.this particular thread is automatically
killed.upto when the particular thread is apply the resume
() function.

Is This Answer Correct ?    6 Yes 0 No

what is the replacement method of stop() of thread..

Answer / swamireddy

SUSPEND()
because one thread apply suspend()
function.this particular thread is automatically
killed.upto when the particular thread is apply the resume
() function.the thread is running.

Is This Answer Correct ?    7 Yes 2 No

what is the replacement method of stop() of thread..

Answer / ravikiran chhaduvula

wait() method from java.lang.Object class is the
replacement for the legacy stop() method

Is This Answer Correct ?    4 Yes 4 No

what is the replacement method of stop() of thread..

Answer / mahesh

their is no replacement for stop(),
but their is a alternative approach is their by using
semaphore boolean conditions.

Is This Answer Correct ?    1 Yes 1 No

what is the replacement method of stop() of thread..

Answer / aslam

write a condition to complete the run method.

Is This Answer Correct ?    0 Yes 1 No

what is the replacement method of stop() of thread..

Answer / umesh

interrupt() method

Is This Answer Correct ?    0 Yes 1 No

what is the replacement method of stop() of thread..

Answer / domnic

the answer is join();
join makes your program wait till the thread upon which it
is called dies.This functionality is same as what done by
the deprecated method stop();

Is This Answer Correct ?    2 Yes 5 No

what is the replacement method of stop() of thread..

Answer / guest

sleep()

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

Does java arraylist maintain insertion order?

0 Answers  


What is the benefit of using enum to declare a constant?

0 Answers   Aspire, Infogain,


In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????

12 Answers   Accenture,


What is the use of TL?

0 Answers  


How do you check if a number is a perfect square?

0 Answers  


Explain differences between collection api and stream api?

0 Answers  


Say any two properties in beans?

0 Answers  


What is the difference between the >> and >>> operators?

1 Answers  


I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?

4 Answers  


What is bufferedwriter?

0 Answers  


Can you make an instance of an abstract class?

5 Answers   Accenture,


What are the advantages of java over C++?

0 Answers  


Categories