Solved

Importance of serializable?

Posted on 2006-11-09
1
492 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JUnit 4 @Before and @BeforeClass differences 3 60
xampp tool 12 50
null output 3 25
Desingning Refactoring existing code 2 24
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

810 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