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
Is it possible to use string in the switch case?
What is hasnext in java?
Why there is no call by reference in java?
Is string a class?
Mention the default values of all the elements of an array defined as an instance variable.
What is the use of java?
What is hashing principle in java?
What is a numeric digit?
How do you ensure that n threads can access n resources without deadlock?
What is private public protected in java?
Why are the methods of the math class static?
What are different types of classloaders?
What about anonymous inner classes in java?
What is set and get methods in java?
What is a loop java?