What is true about writing data using PrintStream in Java?
1
It can only output data to the console.
2
It provides methods to write data in both human-readable and binary formats.
3
It is designed specifically for writing serialized objects.
4
It automatically flushes the output after each newline character if the auto flush flag is set.
5
Question Not Attempted