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