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.
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
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
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
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
Videos
18:45
How to serialize and de-serialize object in java? - YouTube
21:09
#67. What is Serialization and Deserialization in Rest Assured? ...
13:52
Java - Object Serialization - YouTube
Java serialization is easy!
10:53
12.3 Object Serialization in java | Serializable Interface - YouTube
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....
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.
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.
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....
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
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...