Method flush flush() plflush: Flushes the output stream Declaration public static void flush() Remarks Flushes the output stream. Use sparingly, if at all.