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

Discuss different types of errors that generally occur while programming.

0 Answers   Amdocs,


What is listnode in java?

0 Answers  


difference between byte stream class and character stream class?

0 Answers  


How many bytes is 255 characters?

0 Answers  


How is a structure different from array ?

0 Answers   Amdocs,






What is the null?

0 Answers  


what is difference between String buffer and String builder?

5 Answers   Benchmark,


What are java annotations?

0 Answers  


What are the performance implications of interfaces over abstract classes?

1 Answers  


WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?

3 Answers   L&T,


What is difference between throw and throws ?

0 Answers   Cyient,


What are the main uses of this keyword?

0 Answers  


Categories