Suppose i have two threads t1 and t2 are running.How the
main thread will know that the two threads t1,t2 execution
has completed?
Answers were Sorted based on User's Feedback
Answer / satishkumar vishwakarma
with the help of isAlive() and join() method.
The isAlive returns true when threads are running and
join() will wait till the execution get completed.
Is This Answer Correct ? | 58 Yes | 1 No |
Variable of the boolean type is automatically initialized as?
Why charat is used in java?
What is the difference between a loader and a compiler?
Why null value is used in string?
What is the access scope of protected access specifier?
To the class members how can we provide security?
In what ways you can handle exception ?
What is the base class of all exception classes?
Differentiate between stringbuffer and string?
What is the java project architecture?
Is singleton class immutable?
what is struts-config-xml?and its use?