What is the purpose of `DataOutputStream` in Java?
`DataOutputStream` is used to write primitive data types (like `int`, `long`, `double`) in a portable way to an output stream.
Good answer! You correctly identified the purpose of `DataOutputStream`.
Can you explain why `DataOutputStream` is often preferred over writing raw bytes when working with primitive data?