What Is Serialization In Java? - Gurgaon

Sunday, 15 May 2022

Item details

City: Gurgaon, Haryana

Contacts

Contact name alliancedevlabs
Phone 9717514555

Item description

Serialization in Java converts an object’s state into a byte stream; deserialization is the reverse process. Another way, serialization is converting a Java object into a static stream (sequence) of bytes that we can then preserve in a database or send over the internet. Deserialization is recreating the actual Java object in memory using the byte stream. This means is utilized to keep an object alive.

Before we go into serialization details, let’s look at a real-world example.

Assume you’re on the phone with a buddy via a cellular network. Your voice can be heard by a friend who is thousands of miles distant. You may also be aware that your voice is translated into electrical signals and subsequently transmitted via radio signals to a mobile tower. The tower later channels the electrical signal to the precise phone number you are connected with.

Your voice is converted many times before it reaches your companion on the other side. Similarly, when moving from one Java Virtual Machine to another, Java objects require serialization and deserialization.
httpswww.devlabsalliance.com/what-is-serialization-in-java/