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

What happens if main method is not static?

489


Which command from the jdk compiles a java program?

478


Can you start a thread twice in Java?

626


Explain creating threads by extending thread class ?

571


What is the difference between heap and stack memory?

537






Difference between Linked list and Queue?

598


Is arraylist a class in java?

523


What is arrays fill in java?

539


How many bytes is a char in java?

522


Can we use catch statement for checked exceptions?

507


Explain how hashmap works?

586


What happens when heap memory is full?

520


What is lastindexof in java?

538


What are the 4 versions of java?

551


what is mena by object block any what is the use of that

1765