Question: How would you serialize this class?

  1. Mark the User class with the `DeserializableAttribute`.
  2. Declare the class as `public serializable class User {}`.
  3. Mark the User class with the `SerializableAttribute` attribute.
  4. Declare the class as `private serializable class User {}`.

Answer: The correct answer of the above question is Option C:Mark the User class with the `SerializableAttribute` attribute.