Multiple choice technology programming languages

In object-oriented programming why might you want to "serialize" an object?

  1. To sort its data structures in memory so that they can be accessed more quickly

  2. To ensure that it is thread-safe by eliminating any deadlocks or race conditions

  3. To break it into simpler subobjects known as "episodes"

  4. To convert it into a form that can be saved to persistent storage

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Serialization converts an object's state into a format (like JSON, XML, or binary) that can be saved to disk, sent over a network, or stored in a database, and later reconstructed. It's about persistence, not performance optimization, thread safety, or decomposition.