Ask Sawal : Question Answer Forum

What is serialization in java?


Asked By: Mahika Nadig



Report
Share on Facebook
Tweet on Twitter
Share on Linkedin
Share on Reddit
Share on Whatsapp


1 Answer(s) Available

Web Designer Publishing Digital Media Biology Affiliate Thiruvananthapuram India


Java provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that includes the object's data as well as information about the object's type and the types of data stored in the object. Only the objects of those classes can be serialized which are implementing java. Serializable is a marker interface (has no data member and method). Serializability can be enabled in your Java class by implementing the java. A Java object is serializable if and only if its class or any of its parent classes implement either the java. What is Java Serialization? Serialization is a mechanism to convert an object into stream of bytes so that it can be written into a file, transported through a network.

Report
30


Related Questions

Login


Lost Password!

Create Account