what is the replacement method of stop() of thread
Answer Posted / 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 |
Post New Answer View All Answers
Can we force the garbage collection to run?
Can we declare register variable as global?
What is the use of hashmap in java?
What are class types in java?
which pattern is default in scanner package?
What is externalizable interface?
Why put method is idempotent?
Which methods cannot be overridden in java?
What is data member in java?
What do you mean by of string::valueof expression in java 8?
Difference between ‘>>’ and ‘>>>’ operators in java?
How to access arraylist elements in java?
What is boolean in java?
What is the function of static in java?
Why do we need data serialization?