Solved

Importance of serializable?

Posted on 2006-11-09
1
490 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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Unable to open debugger port in Intellij idea 6 79
pairstar challenge 2 41
wordcount challenge 11 73
base64 decode encode 12 96
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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

744 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

12 Experts available now in Live!

Get 1:1 Help Now