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


Please Help Members By Posting Answers For Below Questions

Can we force the garbage collection to run?

540


Can we declare register variable as global?

521


What is the use of hashmap in java?

565


What are class types in java?

588


which pattern is default in scanner package?

1813






What is externalizable interface?

595


Why put method is idempotent?

472


Which methods cannot be overridden in java?

550


What is data member in java?

513


What do you mean by of string::valueof expression in java 8?

553


Difference between ‘>>’ and ‘>>>’ operators in java?

647


How to access arraylist elements in java?

499


What is boolean in java?

519


What is the function of static in java?

551


Why do we need data serialization?

556