1.

What Is Blocking Method In Java?

Answer»

Methods which want to execute the task assigned without relinquishing control to other thread are called blocking methods.

A very relevant EXAMPLE of blocking methods, which most of you would have encountered is read() method of theInputStream class. This method blocks until input data is available, the END of the STREAM is DETECTED, or an exception is thrown.

Methods which want to execute the task assigned without relinquishing control to other thread are called blocking methods.

A very relevant example of blocking methods, which most of you would have encountered is read() method of theInputStream class. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.



Discussion

No Comment Found