Solved

java bean serializable interface

Posted on 2014-01-10
3
1,177 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

740 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