PrintStream class automatically flushes data so there is no need to call flush() method - Core Java
Q. Which class automatically flushes the data so that there is no need to call the flush() method. Moreover, its methods don't throw IOException?
- Published on 17 Jul 15a. Console class
b. Scanner Class
c. FileInputStream class
d. PrintStream class
ANSWER: PrintStream class