0

Is there any other mechanism to do serialization? one of interviewer asked me to tell about another way of serialization apart from implementing Serializable & Externalizable.

  • 1
    You could write your own implementation... – Kon Mar 22 '14 at 16:49
  • More ways than I can count. Serialization is merely the process of persisting state. You can do this in many, many ways. – Boris the Spider Mar 22 '14 at 16:54
  • You could serialize as JSON, use protobufs, avro, csv... serialization just means taking the information in an object and writing it somewhere, such that you can later read what you wrote and recreate a similar object. There are tons of ways to do that. – yshavit Mar 22 '14 at 16:55

1 Answers1

0

The most common way now is JSON

Michelle
  • 1,097
  • 8
  • 18