What is the use join() in Threads ?

Answer Posted / madan

if we want to finish main thread last i.e to ensure all
child threads terminate prior to the main thread

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is native code?

540


What is Applet Stub Interface ?

1975


What are constructors in java?

576


String class is defined under which package in java?

631


What is method reference?

525






What are different type of exceptions in java?

557


What is this keyword used for?

699


Is hashset sorted in java?

674


What does int [] mean in java?

544


What do you mean by ordered and sorted in collections in java?

558


Explain java heap space and garbage collection?

596


What is abstract class constructor called?

577


Explain the features of interfaces in java?

561


What does g mean in regex?

574


What is volatile data type?

553