Which statement is true about the ObjectOutputStream class in Java?
1
It is used to write primitive data types to a file in a human-readable format.
2
It cannot write objects that implement the Serializable interface.
3
It is used to serialize objects and write them to an output stream.
4
It directly writes text to a console or a file.
5
Question Not Attempted