Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which serialization format does Java use?

Tags:

java

rmi

In an RMI program, I want to implement the Serializable interface to serialize objects received from a server. Does Java 6 use a built-in serialization format? I wanted to know if there is a specific name for the serialization format.

like image 879
vid12 Avatar asked Jul 09 '11 23:07

vid12


People also ask

Which method is used for serialization in Java?

To make a Java object serializable we implement the java. io. Serializable interface. The ObjectOutputStream class contains writeObject() method for serializing an Object.

What is serialization formats?

In computing, serialization (or serialisation) is the process of translating a data structure or object state into a format that can be stored (e.g. files in secondary storage devices, data buffers in primary storage devices) or transmitted (e.g. data streams over computer networks) and reconstructed later (possibly in ...

What is default serialization in Java?

Default serializationSerializable interface, which includes the API that converts objects into bytes, which are later deserialized. Use the java. io. ObjectOutputStream class to persist the object. Then, call the ObjectOutputStream.

Is serialization still used in Java?

Usually used in Hibernate, JMS, JPA, and EJB, serialization in Java helps transport the code from one JVM to another and then de-serialize it there. Deserialization is the exact opposite process of serialization where the byte data type stream is converted back to an object in the memory.


1 Answers

Yes, Java has its own binary serialization format. And I don't think it has a name other than Java serialization [format | protocol].

like image 93
JB Nizet Avatar answered Oct 20 '22 02:10

JB Nizet