What is the purpose of the “transient” keyword in Java?
brindha18 Answered question September 7, 2023
The transient keyword in Java is used to avoid serialization. If any object of a data structure is defined as a transient , then it will not be serialized. Serialization is the process of converting an object into a byte stream.
brindha18 Answered question September 7, 2023
Java uses the temporary keyword to prevent serialization. Any data structure object that is declared as a transitory will not be serialized. The process of turning an object into a stream of bytes is known as serialization.
Vishalini.R Answered question September 7, 2023