🌐
GeeksforGeeks
geeksforgeeks.org › java › serialization-and-deserialization-in-java
Serialization and Deserialization in Java - GeeksforGeeks
June 1, 2026 - Serialization converts an object into a byte stream for storage or transmission. Deserialization converts the byte stream back into the original Java object.
🌐
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.
Discussions

Oracle Calls Java Serialization 'A Horrible Mistake', Plans to Dump It
All serialization systems seem to be not so great. Neither pickle in python nor marshal in ruby. All come with certain restrictions e. g. unable to store all properties of an object. I assume this to be not that dissimilar to java. More on reddit.com
🌐 r/programming
288
798
May 26, 2018
Questions about JSON/Gson serialization and deserialization
what happens if...? Is there a reason you can't just try this for yourself and see? Set up a unit test to pass in some JSON, and see if an error is thrown, or if it's deserialised as you expect. More on reddit.com
🌐 r/learnjava
4
4
December 5, 2023
Explain like i'm five - what is Serializable?
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 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. Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar 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: 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/javahelp
9
24
April 26, 2024
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
🌐
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.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › serialization › index.html
Java Object Serialization
April 21, 2026 - Object Serialization supports the encoding of objects and the objects reachable from them, into a stream of bytes. Serialization also supports the complementary reconstruction of the object graph from a stream. Serialization is used for lightweight persistence and for communication via sockets ...
🌐
Oracle
docs.oracle.com › javase › tutorial › jndi › objects › serial.html
Serializable Objects (The Java™ Tutorials > Java Naming and Directory Interface > Java Objects in the Directory)
When an object is serialized, ... definition ("class file") itself is not recorded. It is the responsibility of the system that is deserializing the object to determine how to locate and load the necessary class files....
🌐
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.
🌐
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.
🌐
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.
Find elsewhere
🌐
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
🌐
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.
🌐
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.
🌐
Mytectra
mytectra.com › tutorials › core-java › serialization-and-deserialization
Core Java - Serialization and Deserialization
Serialization is a process in Java that allows you to convert an object's state into a byte stream, which can be stored in a file, transmitted over a network, or saved in a database. Deserialization, on the other hand, is the reverse process where you convert a byte stream back into an object's ...
🌐
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.
🌐
Vogella
vogella.com › tutorials › JavaSerialization › article.html
Java object serialization - Tutorial
The following code example show you how you can serializable and de-serializable this object. package de.vogella.java.serilization; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; public class Main { public static void main(String[] args) { String filename = "time.ser"; Person p = new Person("Lars", "Vogel"); // save the object to file FileOutputStream fos = null; ObjectOutputStream out = null; try { fos = new FileOutputStream(filename); out = new ObjectOutputStream(fos); out.writeObject(p); out.close(); } ca
🌐
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.
🌐
Medium
medium.com › @mesfandiari77 › exploring-serialization-and-deserialization-in-java-7c64d03bda52
Exploring Serialization and Deserialization in Java | by MEsfandiari | Medium
September 26, 2024 - Serialization and deserialization in Java are fundamental techniques for converting objects into a storable or transmittable format and then reconstructing them when needed. They are widely used in various scenarios, including data persistence, ...
🌐
DZone
dzone.com › coding › languages › serialization and de-serialization in java
Serialization and De-Serialization in Java
November 27, 2018 - object serialization is a process ... to any other running java virtual machine. the reverse process of creating an object from the byte stream is called deserialization ....
🌐
Reintech
reintech.io › blog › java-serialization-saving-restoring-objects-to-from-disk
Java serialization: Saving and restoring objects to/from disk
April 18, 2023 - The serialized file contains a binary representation of the object, including class metadata and field values. This format is Java-specific and not human-readable. Restoring objects requires reading the byte stream and casting to the appropriate type. Handle both IOException and ClassNotFo...
🌐
PVS-Studio
pvs-studio.com › en › blog › posts › java › 1190
Java serialization: let′s dig it up - PVS-Studio
November 22, 2024 - Serialization is the process of representing the object state as a byte sequence. The reverse process, i.e., converting the byte sequence into the object, is called deserialization.