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 |
What is the abstraction?
What is an accessor?
how can be object class inherited to all class in a program when java does not support multiple inheritance??
What is unmodifiable collection in java?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Can a main method be declared final?
What is exception and error? and what is the difference between them?
can you create interface instance ?
Is Cegonsoft Pvt.Ltd. a good Institute?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What do you mean by garbage collection used in java?
What do you mean by platform independence? What is an interface?