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

what us Dyna action form?

4 Answers   Aithent Technologies,


What are the differences between stringbuffer and stringbuilder?

0 Answers  


List types of storage classes in java?

0 Answers   Cyient,


different types of threads?

18 Answers   TCS,


how a marker interface gets its functionality and when we implements a marker interface how it got invoked

3 Answers   Mind Tree,






What do bitwise operators do?

0 Answers  


What is a subsequence of a string?

0 Answers  


what is an object class?Explain its methods?

6 Answers  


What is super keyword explain with example?

0 Answers  


What is the difference between a public and a non-public class?

2 Answers  


What is the difference between serial and throughput garbage collector?

0 Answers  


what is ejb? what is the importance of ejb?

2 Answers   Photon,


Categories