I understand that java objects can be serialized to a file, but under what circumstances would we need to use an XMLEncoder and serialize an object as XML?
I'm starting to get a grip with Java EE and I understand that we can serialize beans using this method, but why exactly do we need to do it like this and for what purpose?