how many ways we can serialize the java object?

Answer Posted / ram

The core serialization support is in the java.io package,
and consists of two interfaces and two classes:
java.io.Serializable, java.io.Externalizable,
java.io.ObjectOutputStream, and java.io.ObjectInputStream.

Using java.io.ObjectOutputStream, you can write serialized
objects to any kind of stream: file, network, memory, etc.
Using java.io.ObjectInputStream, you can read serialized
objects from any kind of stream.

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the base class in java from which all classes are derived?

998


how to create daemon thread in java?

828


What is default exception handling in java?

764


What are the skills required for core java?

756


What is the difference between abstraction and encapsulation?

776


What happens to a static var that is defined within a method of a class?

765


What are aggregate functions explain with examples?

775


why we use merge option in hybernate pls give a ex snippet

1683


Why collection doesn’t extend cloneable and serializable interfaces?

862


What is instance synchronization?

804


why not override thread to make a runnable? : Java thread

748


What is subsequence of a string?

833


Is boolean a wrapper class in java?

821


What is the difference between arraylist and hashset in java?

750


What is a byte string?

810