Why do we need to implement Serializable interface on
Java Beans (getter/setter methods)?
In my application, I am implementing Serializable interface for all java beans. I know that, I am doing it for the persistence. But I neither use ObjectInput/OutputStreams to read and write to file system, hard disk and nor handle any other kind of persistence when system crashes/or when system down.
It is advisable to store all data in one bean and in turn it should store in session object, hence I will have only one session object through out my application .Why is it advisable that object to be implemented by Serializable interface. How data is going to be persisted? I am not writing and persistence logic in my application.
Please answer my question�.