what is the replacement method of stop() of thread
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Name the methods that used to get and set the text label displayed by a Buttonobject?
Write a program to reverse a number in java?
What is exception and error? and what is the difference between them?
How hashmap increases its size in java?
Can It is possible to synchronize the constructor of a Java Class?
How to use scanner in java?
What is static variable and static method?
32 Answers Accenture, Prolific, Prolifics, TCS, TNH,
How does the garbage collector works in java?
Name the method that is used to set a TextComponent to the read-only state?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?
How can a class be accessed, If no access modifiers are declared?
Explain about class in java?