The class ________ allows an application to write primitive Java data types to an output stream in a portable way.

  • ByteArrayOutputStream
  • DataOutputStream
  • ObjectOutputStream
  • PrintStream
The class ObjectOutputStream in Java is used for writing primitive Java data types to an output stream in a portable way. It provides methods for writing various data types to the stream.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *