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 |
How does system arraycopy work in java?
What is a constructor overloading in java?
How do I print a “?
What is the same as procedures?
What is the difference between length and size in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What are the escape sequences in java?
Explain the JDB in depth & command line.
where exactly collections are usefull in realtime
Does isempty check for null?
What is public static?
Does java support multi dimensional arrays ?