The answer depends on your goal. If you send data between Java processes, the default Java serialization engine may work fine.
However, for storing data, especially data that people might want to view or modify, the Java serialization mechanism is poorly suited.
There are a number of great XML-java serialization libraries that I really prefer when readable / editable output is required.
Two big ones: XStream and JAXB
source
share