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
Explain the difference between private, public, package and protected in java?
What is the main use of generics in java?
What does next mean in java?
What are parameters in a method?
What are the parts of a method?
What is variable and example?
Can you override static methods?
What is scope of a variable?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
How use .contains in java?
What are the advantages of unicode?
What restrictions are placed on method overloading in java programming?
What are daemon Threads in java?
What is a literal coding?
What are autoboxing and unboxing? When does it occur?