What is the use join() in Threads ?

Answer Posted / a.sreekanth

The join() method of a Thread instance can be used to "join" the start of a thread's execution to the end of another thread's execution so that a thread will not start running until another thread has ended. If join() is called on a Thread instance, the currently running thread will block until the Thread instance has finished executing.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What restrictions are placed on method overriding?

830


Explain about assignment statement?

776


Who is founder of java?

712


What variables are stored in stack?

706


What is functional interface in java?

731






What is string syntax?

757


What is the symbol for space?

736


Difference between this() and super() ?

746


whatis Home interface and Remoteinterface? with example?

1718


What is the class in java?

740


Which access specifier can be used with class ?

691


Which methods cannot be overridden in java?

724


What is a memory leak in java?

746


How many types of interfaces are there?

751


What is parsing in grammar?

751