Java – Difference/Comparison Table for yield(), join() and sleep() | Code Factory


Index Page : Link

Donate : Link

Medium Link : Link

Applications : Link

IE : InterruptedException

Propertyyield()join()sleep()
puposepause execution and give chance to other some priority threadwait for other thread to completeif thread don’t want to perform any operation
is it overloaded (methods)NoYesYes
is it finalNoYesNo
is it throw IENoYesYes
is it NativeYesNo– sleep(ml) is native
– sleep(ml, n) is not
is it staticYesNoYes

2 thoughts on “Java – Difference/Comparison Table for yield(), join() and sleep() | Code Factory”

Leave a comment