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 environment variables are required to be set on a machine in order to run Java programs?

610


Describe different states of a thread.

570


How an object is serialized in java?

521


What is ascii format?

539


Why we use set in java?

504






What is your platform’s default character encoding?

549


Can we create constructor in abstract class ?

571


What is the purpose of static methods and static variables?

533


What is predicate in java?

552


What is the difference between jdk, jre, and jvm?

562


Explain the term virtual machine?

580


What is the use of static methods?

579


what is aggregation in java?

578


What is the difference between hashmap and hashtable? What is an interface?

494


Explain the overview of UDP messaging.

725