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

Explain enumeration in java?

570


How do you download stubs from Remote place?

1359


What are the advantages and disadvantages of reference counting in garbage collection?

579


Tell me the Importent classes in net package?

1582


Explain spliterator in java8?

601






What are aggregate functions explain with examples?

528


Can you use this() and super() both in a constructor?

522


What is array sorting in java?

557


Why heap memory is called heap?

589


Can you pass by reference in java?

528


Do you know how to reverse string in java?

585


Why is stringbuffer called mutable?

567


In how many ways we can do synchronization in java?

529


What is the maximum size of array in java?

518


What about abstract classes in java?

612