Posts: 266
Threads: 239
Joined: Apr 2011
flush method
respected Sir
kindly explain me following two points
why we use flush()?
why we use iport java.util.*?
thnk you
Nadia
Posts: 9,583
Threads: 8,089
Joined: Apr 2011
flush()
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.
java.util
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).