Category: Serialization

Preventing serialization from breaking singleton design pattern 0

Preventing serialization from breaking singleton design pattern

Java Singleton Singleton pattern restricts the instantiation of a class and ensures that only one instance of the class exists in the java virtual machine. Here is an example of a singleton class 1...

Is Java Serialization Secure? – How can we secure it? 0

Is Java Serialization Secure? – How can we secure it?

Java serialization is a way of storing the state of objects in the form of bytes which can be retrieved later on to reconstruct the object. But once we save the object state, is...

Java serialization – Algorithm Behind It 0

Java serialization – Algorithm Behind It

Serialization is the process of saving an object’s state to a sequence of bytes; deserialization is the process of rebuilding those bytes into a live object. In order to be serializable the class has...