Question d’entretien chez Juniper Networks

How to serialize an object without implementing serialiszable interface

Réponse à la question d'entretien

Utilisateur anonyme

18 nov. 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.