Amazon interview question

Internal working of RMI - Serialization.