Query Regarding serializable interface.
Posted by ~Ray @ 2007-12-09 13:37:17
Hi,I have a ask regarding serializable interface. I understood basic concept of serializable interface. If we are developing application how will i determine which class to apply as serializable interface. My assumption is that we undergo to implement serializable interface whenever disapprove is transfered from one communicate to other then only apply serializable interface is this correct?Second assumption is that as we create verbally server align programming i e application which run under hit JVM then there is need to that.. is this correct?
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 need 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!
|