0

Can I wrote an object to files and later on retrieves it with its integrety intact? Is there a ready made function or do I have to write one?

I am new to Java, is this what one calls serialization?

4
Contributors
4
Replies
5
Views
13 Years
Discussion Span
Last Post by mmiikkee12
0

yes, that's serialization.
It works if you take some basic precautions (like making sure every field in your class is itself Serializable or transient).

Of course you should mark things that rely on external data as being transient so they don't get serialized as those external resources likely will not exist or be different when you deserialize it again.

0

Hi everyone,

Soory to go off topic for a while but i saw you avatar its the firebird. Any relation to janus software?

Richard West

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.