?
Solved

java bean serializable interface

Posted on 2014-01-10
3
Medium Priority
?
1,193 Views
Last Modified: 2014-01-28
Hi,

I am going through below link
http://www.avajava.com/tutorials/lessons/what-is-a-javabean.html

I wonder why java bean needs to implement the serializable interface.

Are there are scenarios where there is no need for java bean to save object to Database or file system so that we do not need to implement serializable interface.(any sample example for that scenario).

In this link they said 'Refrigerator'. I did not get in what context author mentioned that.

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
[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
  • 2
3 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 39773627
You do not need to implement the Serializable interface, unless you need to serialise the data, i.e. you need to pass the bean remotely to another JVM or you need to save its state on the disk.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39784046
you need to pass the bean remotely to another JVM or you need to save its state on the disk. 

Open in new window


Are these two scenarios for 'no need to serialize data' ?
why do we need to pass bean remotely to another JVM
I am not very clear. Please advise
0
 
LVL 35

Accepted Solution

by:
girionis earned 2000 total points
ID: 39789386
Are these two scenarios for 'no need to serialize data' ?

No, they are the scenarios for "I need to serialise data".

why do we need to pass bean remotely to another JVM

If you are making a remote method call for example. If someone has implemented a remote application and you need access to it. There are several scenarios where this could be useful.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month9 days, 5 hours left to enroll

764 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