Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Importance of serializable?

Posted on 2006-11-09
1
Medium Priority
?
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
owenli27 earned 150 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

721 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