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 |
What is the purpose of format function?
suppose string s1="rajnish"; string s2="bhaskar"; then what will be happend ?
What is rmi and steps involved in developing an rmi object?
In Java list the methods that can be overridden?
How to sort numbers in java without array?
What method is used to compare two strings ?
Is empty list java?
Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.
What is hashmap in java?
What is object
How do you control extraneous variables?
In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?