Solved

Importance of serializable?

Posted on 2006-11-09
1
491 Views
Last Modified: 2012-06-22
When to implement serializable? when are not? Do I have to implement serializable all the time If my classes no need for future flexibility?
0
Comment
Question by:mon_pacey8
1 Comment
 
LVL 9

Accepted Solution

by:
owenli27 earned 50 total points
ID: 17911547
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now