What is the purpose of serialization in Java?
Serialization allows you to convert an object to a format that can be stored or transferred, but it doesnâ€™t work with non-serializable objects.
Satisfactory! You're on the right track, but there are more details to consider about how serialization works.
Can you explain what happens if an object does not implement `Serializable` and is attempted to be serialized?