What happens if a non-serializable object is added to a serializable class in Java?
If a non-serializable object is added to a serializable class, it can still be serialized as long as it's marked with the `transient` keyword.
Satisfactory! You mentioned the `transient` keyword, which is indeed relevant in this case.
Can you explain how the `transient` keyword works in serialization and what it does exactly?