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 |
Can a class have multiple constructors?
What is the purpose of static keyword in java?
what is the difference between System.exit() and System.exit(1)?
1 Answers eClinical Solutions, eClinical Works, eClinicalWorks,
What is the difference between inheritance and encapsulation?
What is final access modifier in java?
What is an example of declaration?
What is a deadlock ?
How big is a boolean?
take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655..
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?
What are 3 data types?
________ exception must be either caught or specified in throws class of the method.