gpt4 book ai didi

java - 为什么 System.out.print 会导致自动刷新?

转载 作者:搜寻专家 更新时间:2023-11-01 03:26:21 26 4
gpt4 key购买 nike

System.out 是一个 PrintStream 对象。我阅读了关于 PrintStream 的文档。我不明白为什么 System.out.print 会导致缓冲区被刷新?这不应该只发生在 println 上吗?

最佳答案

Shouldn't that happen only for println?

Javadoc 没有说明何时不会 刷新。它说它println() 或换行符 上刷新。

关于java - 为什么 System.out.print 会导致自动刷新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12925706/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com