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 15

a. Console class
b. Scanner Class
c. FileInputStream class
d. PrintStream class

ANSWER: PrintStream class

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)