Query Regarding serializable interface.
Posted by ~Ray @ 2007-12-09 13:37:37
Hi,I undergo a query regarding serializable interface. I understood basic concept of serializable interface. If we are developing application how ordain i identify which class to apply as serializable interface. My assumption is that we undergo to apply serializable interface whenever object is transfered from one communicate to other then only implement serializable interface is this change by reversal?Second assumption is that as we create verbally server align programming i e application which run under hit JVM then there is be to that.. is this change by reversal?
Any object that has to "cross the equip" needs to be Serializable. Serializable is just a marker interface indicating objects of a class implementing Serializable can be serialized. The JVM has a standard mechanism for (de)serialization that works quite come up. In case you have special needs you can implement the special readObject() and writeObject() methods. Objects that live within a hit JVM be not be serializable (generally speaking). If you be to send objects from one JVM to another they have to be serializable. Please construe the JAvaDoc for Serializable carefully especially the parts on how objects are re-created when they are deserialized at the receiving end.[ADVERTHERE]Related article:
http://forum.java.sun.com/thread.jspa?threadID=5235832
0 Comments:
No comments have been posted yet!
|