From 60956e1a089b1b02fe6e41381b02823622b3f411 Mon Sep 17 00:00:00 2001 From: Hunor Vadasz-Perhat <112109309+HunorVadaszPerhat@users.noreply.github.com> Date: Mon, 10 Apr 2023 13:48:08 +0200 Subject: [PATCH] Update readme.md --- transient_keyword/readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/transient_keyword/readme.md b/transient_keyword/readme.md index 60292ef..85a54b5 100644 --- a/transient_keyword/readme.md +++ b/transient_keyword/readme.md @@ -2,5 +2,10 @@ - in Java, serialization is a concept using can be used the state of an object into a byte stream to be transferred over a network - during the process of serializing an object of a class if one wants to the JVM to neglect to a particular instance variable it must be declared transient -- + ![Transient](https://github.com/HunorVadaszPerhat/java_lang_specs/blob/main/images/transient.png) + +### Serialize vs deserialize +![Serialize vs deserialize](https://github.com/HunorVadaszPerhat/java_lang_specs/blob/main/images/serialize_deserialize.png) +- *serialize*: the process of converting complex data structures such as objects into a "flatter" format that can be sent and received as a sequential stream of bytes +- *deserialize*: the process of restoring byte stream to a fully functional replica of the original object, in the exact state as when it was serialized