It is known fact that System.in
and System.out
is a InputStream
and PrintStream
respectively. Thus it is a java.io Streams.
When we work with streams we should open and close its. Also we should to catch a lot of exceptions. When we work with System.in
and System.out
we spared from these activities.
Who executes these activities instead of us? and when(under what conditions?) streams opens/close ?