What is the purpose of `DataOutputStream` in Java?
`DataOutputStream` is used to write primitive data types to files in a binary format, making it efficient for large datasets.
You're on the right track, but it's not just for files. It can write to any output stream.
Can you explain the difference between `DataOutputStream` and `ObjectOutputStream`?