Is System.out buffered or unbuffered?

后端 未结 3 1584
时光说笑
时光说笑 2020-12-20 20:53

Is System.out buffered or unbuffered?

I read this is an object of InputStream and PrinterStream is the type of object referenc

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 21:35

    From http://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html:

    Optionally, a PrintStream can be created so as to flush automatically; this means that the flush method is automatically invoked after a byte array is written, one of the println methods is invoked, or a newline character or byte ('\n') is written.

提交回复
热议问题