System.in.read () is also an io stream, so don't you need to close it when you run out of it?

but what if I call system.in.read () again after closing it?
does its instance BufferedInputStream shut down automatically immediately after it is used up? Or are you waiting for recycling?

Mar.04,2021

System.in System.out System.err three streams cannot be closed.
this is the standard input and output of the process, which is created when the program starts and closes when it exits.
closes these three streams, indicating that you are ready to exit the program.

Menu