Serialsation Flashcards
What is serialisation?
Serialisation is the process of converting an object into a stream of bytes to store the object or transmit to memory, a database or a file.
What are the advantages and disadvantages of using binary object serialisation?
Advantages: preserves type fidelity, which is useful for preserving the state of the object between different invocations of an application.
Disadvantages: it is not easily portable to another platform
What are the advantages and disadvantages of using XML object serialisation?
Advantages: open standard, it is an attractive choice for sharing data across the web.
Disadvantages: consumes a lot of space on the disk and it works on public members and public classes and not on the private or internal classes.
What are the advantages and disadvantages of using JSON object serialisation?
Advantages: open standard, it is an attractive choice for sharing data across the web, it’s faster than other types
Disadvantages: no error handling, it works on public members and public classes and not on the private or internal classes.