Serialsation Flashcards

1
Q

What is serialisation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the advantages and disadvantages of using binary object serialisation?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages and disadvantages of using XML object serialisation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the advantages and disadvantages of using JSON object serialisation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly