Juniper Networks interview question

How to serialize an object without implementing serialiszable interface

Interview Answer

Anonymous

Nov 18, 2015

There are many serialization mechanisms apart from the jvm one. XML JSON BSON MessagePack protobufs ... Some of them are text-based, some are binary. All have drawbacks and pluses. Text-based ones are human-readable, binary ones are faster and take up less space. There are java libraries that handle all the above formats: JAXB (XML), Jackson (JSON), etc.