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.
Loading...
Related Quiz
- Which class allows you to read lines of text from a file?
- Which method is typically overridden to handle an event in JavaFX?
- In a large-scale application that reads data from external files, how would you design an exception-handling mechanism to not only log the issues for the developers but also to provide friendly feedback to the end-users, ensuring that the system does not crash upon encountering an exception?
- In Java, the ______ operator is used to increment a variable's value by 1.
- Which of the following classes is used to create a button in JavaFX?