Xebia interview question

Serialization in java and how it works internally