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
What happens if main method is not static?
Which command from the jdk compiles a java program?
Can you start a thread twice in Java?
Explain creating threads by extending thread class ?
What is the difference between heap and stack memory?
Difference between Linked list and Queue?
Is arraylist a class in java?
What is arrays fill in java?
How many bytes is a char in java?
Can we use catch statement for checked exceptions?
Explain how hashmap works?
What happens when heap memory is full?
What is lastindexof in java?
What are the 4 versions of java?
what is mena by object block any what is the use of that