大侠,请结合flush方法说下,好吧?谢谢
解决方案 »
- 实现了鼠标的监听器类为什么没有反应呢?
- java中的多态问题,总是不能很好的去理解
- 关于zlib,不同语言之间的交互
- 这个问题可不小,不回答可惜了!
- 问问java中对话框(Dialog)的两个简单概念
- 怎么从文件中读入一个数字?就像c中的scanf("%d",&i)
- ByteArrayInputStream bais的中文问题...
- 为什么在MS-DOS下用javac进行编译时总会提示Bad command or file name!
- Exception问题??????????
- 为什么我的applet在ie5中找不到
- java 中怎么继承一个对话框也就是JDialog
- 关于struts2.0的validator问题
Flushes this output stream and forces any buffered output bytes to be written out. The general contract of flush is that calling it is an indication that, if any bytes previously written have been buffered by the implementation of the output stream, such bytes should immediately be written to their intended destination……这里提到的缓冲不是JVM管理,而是Implementation of the output stream来负责初始化、使用和清空,缓冲区相当于一个内部的数据单元,flush就是清空这块数据单元而已。
?????
那System.in.read();
flush();
readline();
这个过程是写设备了吗?应该也还在内存上啊??我理解的设备应该是到磁盘上才对,是吧?
JVM是Java虚拟机,是运行Java程序的一个环境。
JVM是Java虚拟机,是运行Java程序的一个环境。