---
title: "What one should take care of while serializing the object?"  
description: "What one should take care of while serializing the object?"  
author: "Sumit Kesarwani"  
published: 2014-08-25  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/2010/what-one-should-take-care-of-while-serializing-the-object  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What one should take care of while serializing the object?

One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException.

## Answers

### Answer by Sumit Kesarwani

One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException.


---

Original Source: https://www.mindstick.com/interview/2010/what-one-should-take-care-of-while-serializing-the-object

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
