What is serialization in java?
Answer / Varunt Yagi
Serialization in Java refers to the process of converting an object (or graph of objects) into a byte stream or sequence of bytes that can be written to a file, transmitted over a network, or stored in a database. The purpose of serialization is to enable data persistence and object transfer between Java applications. Java uses an Object Output Stream for serializing the objects and an Object Input Stream for deserializing them.nDuring serialization, all the fields (private variables) of an object are converted into a sequence of bytes along with their data types using a process called marshalling.nBy default, Java provides the ability to serialize most built-in data types (such as int, double, String), arrays, and custom classes that implement the Serializable interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the methods used to implement for the key object in the hash map?
What is difference between java and java ee?
Is null or empty java?
How do you make an arraylist empty in java?
When is an object subject to garbage collection?
How do I compare two strings in word in java?
How java uses the string and stringbuffer classes?
What is the integer of 16?
what is the difference between HashMap and Hashtable
17 Answers Value Labs, Virtusa,
What does t in java mean?
What is treemap in java?
Why parsing is done?