Data persistence using Serialized
2 posts in topic
Flat View  Flat View

Posted By:   Steve_Hall
Posted On:   Friday, July 7, 2006 05:18 AM

Am I asking a ridiculous question here?
Is it possible to write an object, one at a time using Serialized?

For example:

While ((myObject) obj exists) {

so that each obj will be added to a persistence store.

Then to retrieve, do the opposite:

While ((myObject) in.readObject() != null) {
// do something with object

So that I read every object back out again

Re: Data persistence using Serialized

Posted By:   Anonymous  
Posted On:   Tuesday, July 18, 2006 04:50 AM

persistent means accuracy, maintaincy

when u serialized a object . it will not maintain values of transient and static variables. so when u deserialized a object . it will give default values for these variables and will give values of instance varibles as it is when stored.

Re: Data persistence using Serialized

Posted By:   Jani_Kaarela  
Posted On:   Tuesday, July 11, 2006 03:09 AM

No, not ridiculous, but I'm sure you could have found the answer yourself if you made some effort. Google is your friend. You should read up on Object Serialization in The Java Tutorial.

About | Sitemap | Contact