Computer Science, asked by SanyaGirdhar8037, 1 year ago

Difference between wait,join and sleep in java

Answers

Answered by Bilal12th
0
One of the most obvious differences between the wait() and join() methodis that former is declared injava.lang.Object class while join() isdeclared in java.lang.Thread class. This means that wait() is related to the monitor lock which is held by each instance of an object and join methodis related to Thread itself.
Similar questions