Which method is used to close an IO stream in Java?

Last Updated :
Discuss
Comments

Which method is used to close an IO stream in Java?

stop()

flush()

shutdown()

close()

Share your thoughts in the comments