What is Method Block?
Answers
Answered by
7
Explanation:
Blocking methods in Java are those methods which block the executing thread until their operation finished. A famous. example of blocking method is InputStream read() method which blocks until all data from InputStream has been read. completely.
mark me Brainliest Plz ❤️
Answered by
2
Answer:
Blocking methods are those which blocks the current executing thread from further operation until function returns. So if you have just one thread in your program e.g. main thread and you call any blocking method e.g. reading from InputStream, your program will be blocked until reading of file finished. Javadoc clearly mention whether an API call is blocking or not but most of java IO methods are blocking
♔〘Ł€Ǥ€ŇĐ〙♔τнänκ чöü♥
Similar questions