🌐
GeeksforGeeks
geeksforgeeks.org › java › serialization-and-deserialization-in-java
Serialization and Deserialization in Java - GeeksforGeeks
June 1, 2026 - Together, they enable object persistence, data transfer, and communication between different systems while preserving an object's state. Serialization converts an object into a byte stream for storage or transmission. Deserialization converts ...
🌐
Medium
medium.com › @pratik.941 › serialization-and-deserialization-in-java-6dbd11fd31b3
Serialization and Deserialization in Java | by Pratik T | Medium
July 29, 2024 - Serialization and Deserialization in Java Serialization is the process of converting an object into a byte stream, making it possible to store the object or transmit it over a network
Discussions

What is Deserialize & Serialize?
When you need to get data out of your program, out of it's process memory, you need to shape it in a linear string - serialize. It doesn't have to be a text string, you have standard binary serialization formats, or you can roll your own (don't). And on the other side, you deserialize from this linear string into objects stored in (another) program's process memory. You most often can't just raw copy data from process memory because that data is not tagged, in no standard order or format, not linear, not stored in one place, or contains information that would be wrong in other program's memory, like pointers and metadata. More on reddit.com
🌐 r/algorithms
6
7
December 11, 2016
Java serialization/deserialization?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
9
5
April 15, 2024
How to deal with non-serializable fields in Java easily and correctly (article)
On a related note, Brian Goetz has called Java serialization one of the biggest design mistakes in Java, and you shouldn't use it at all. More on reddit.com
🌐 r/java
25
22
April 22, 2025
How does reflection make serialization and deserialization in a completely generic manner?
"reflection makes it possible to do serialization and deserialization in a completely generic manner" You can get all the member fields of the object ragardless of the object's type using reflection. generate special marshalling functions for each type of object" Marshalling is the practice of converting your object into another format like XML or JSON. More on reddit.com
🌐 r/javahelp
2
4
February 25, 2020
🌐
Mytectra
mytectra.com › tutorials › core-java › serialization-and-deserialization
Core Java - Serialization and Deserialization
When a class implements 'Serializable', ... and serialize it to a file named "person.ser" using 'ObjectOutputStream'. ... Deserialization is the process of converting a byte stream back into an object....
🌐
Snyk
snyk.io › blog › serialization-and-deserialization-in-java
Serialization and deserialization in Java | Snyk Blog | Snyk
December 18, 2020 - With deserialization, you start with a byte stream and re-create the object you previously serialized in its original state. However, you must have the definition of the object to successfully re-create it.
🌐
Baeldung
baeldung.com › home › java › core java › introduction to java serialization
Introduction to Java Serialization | Baeldung
May 11, 2024 - Join the next session, bring your questions, and learn how to automate the kind of work that usually eats your sprint time. ... Serialization is the conversion of the state of an object into a byte stream; deserialization does the opposite.
🌐
Scaler
scaler.com › home › topics › java › serialization and deserialization in java with example
Serialization and Deserialization in Java with Example - Scaler Topics
February 22, 2024 - During deserialization, the object's constructor isn't invoked. When a parent class implements the Serializable interface, its child class inherits this behavior. However, if only the child class implements Serializable, it doesn't automatically apply to the parent. Serialization in Java only preserves non-static data members; static and transient data members are excluded from the process.
🌐
Great Learning
mygreatlearning.com › blog › it/software development › serialization and deserialization in java with examples
Serialization and Deserialization in Java with Examples
June 27, 2025 - Serialization in Java is the process of converting an object state into a byte stream. You can then store this byte stream in a file or transmit it over a network. This makes objects persistent.
🌐
GeeksforGeeks
geeksforgeeks.org › serialization-in-java
Serialization and Deserialization in Java with Example | GeeksforGeeks
January 4, 2025 - Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse process where the byte stream is used to recreate the actual Java object in memory.
Find elsewhere
🌐
Scaler
scaler.com › home › topics › java › serialization and deserialization
serialization and deserialization - Java
March 28, 2024 - Serialization in simple terms means converting an object into a sequence of bytes, deserialization is exactly the opposite. In deserialization, an object is reconstructed back from the sequence of bytes.
🌐
Tutorialspoint
tutorialspoint.com › java › java_serialization.htm
Java - Serialization
After a serialized object has been written into a file, it can be read from the file and deserialized that is, the type information and bytes that represent the object and its data can be used to recreate the object in memory.
🌐
Codementor
codementor.io › java › tutorial › serialization-and-deserialization-in-java
Serialization and Deserialization in Java | Codementor
This process of writing the object state into a byte stream is known as Serialization. Eventually, we can use this byte stream to retrieve the stored values and restore the object’s old state.
🌐
Medium
medium.com › @salvipriya97 › serialization-and-deserialization-explained-with-examples-5e2e45af97ee
Serialization and Deserialization explained with examples | by Priya Salvi | Medium
January 9, 2024 - Java Interface: The Serializable interface in Java is a marker interface that indicates a class can be serialized. Definition: Deserialization is the process of reconstructing an object from a byte stream.
🌐
TOOLSQA
toolsqa.com › rest-assured › serialization-and-deserialization-in-java
How does Serialization and Deserialization in Java works?
July 7, 2021 - In the previous section, we learnt the Serialization converts a class instance into a byte stream which is then stored in a file on disk. Let us quickly take a look at the Deserialization process in Java, which is opposite of Serialization.
🌐
Tpoint Tech
tpointtech.com › serialization-in-java
Java Serialization | Serialization and Deserialization in Java - Tpoint Tech
March 17, 2026 - Data can be kept between program executions by using serialized objects, which can be saved to a disc or a database and then retrieved. Deserialization is the reverse process of serialization. It converts the byte stream back into a Java object, restoring its original state.
🌐
LinkedIn
linkedin.com › pulse › serialization-deserialization-java-gauttam-sonkamble
Serialization and Deserialization in Java
For serializing the object, we call the writeObject() method of ObjectOutputStream class, and for deserialization we call the readObject() method of ObjectInputStream class. We must have to implement the Serializable interface for serializing ...
🌐
Mkyong
mkyong.com › home › java › java serialization and deserialization examples
Java Serialization and Deserialization Examples - Mkyong.com
October 6, 2021 - In Java, Serialization means converting Java objects into a byte stream; Deserialization means converting the serialized object’s byte stream back to the original Java object. Table of contents. ... In Java, we have to implement the Serializable interface to supports serialization and deserialization.
🌐
SevenMentor
sevenmentor.com › java-serialization-and-deserialization-explained
Java Serialization and Deserialization Explained
November 12, 2025 - In the world of Java programming, ... and deserialization. Put simply, serialization is the process of converting a live object into a sequence of bytes; deserialization is the reverse, turning that byte stream back into an object....
🌐
LabEx
labex.io › tutorials › java-java-serialization-and-deserialization-117950
Mastering Java Serialization and Deserialization | LabEx
In this lab, we learned how to serialize and deserialize objects in Java using the ObjectInputStream and ObjectOutputStream. We also learned how to handle transient fields, customize the serialization and deserialization process, and handle versioning using serialVersionUID.