Importance of serializable?

When to implement serializable? when are not? Do I have to implement serializable all the time If my classes no need for future flexibility?
LVL 1
mon_pacey8Asked:
Who is Participating?
 
Weiping DuConnect With a Mentor Senior Web DeveloperCommented:
Serializable objects are ones that you can store as byte data and load back in at any time.  The any classes, which implemnets Serializable interface, may be written using ObjectOutputStream and read using ObjectInputStream.  

Usually, You should mark your classes Serializable if you wanted to store them in a database or if you needed to send them over a network, or if you want to pass them via RMI.   The Value Objects is good example for using serializable.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.