niompeace.blogg.se

Kotlin class serializable
Kotlin class serializable








kotlin class serializable

Thank you Vijaya Lakshmi G M mam for helping me to get the insights on these with proper scenarios. Transient is a modifier which is used to prevent the particular class member to be de sterilized. Serializable interface is a marker interface. Marker interfaces are also known as tag interfaces.Ī marker interface is typically used to provide a common base type for a group of related classes. In Java, a marker interface is an interface that contains no methods or fields and is used to indicate that a class implementing the interface has a certain property. To make an object serializable, the class of the object must implement the java.io. The reverse process, which reconstructs the object from the stream of bytes, is called de serialization. Its main purpose is to save the state of an object in order to be able to recreate it when needed. In Java, serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to external file. What is the use of transient keyword in Java ?










Kotlin class serializable