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
Explain enumeration in java?
How do you download stubs from Remote place?
What are the advantages and disadvantages of reference counting in garbage collection?
Tell me the Importent classes in net package?
Explain spliterator in java8?
What are aggregate functions explain with examples?
Can you use this() and super() both in a constructor?
What is array sorting in java?
Why heap memory is called heap?
Can you pass by reference in java?
Do you know how to reverse string in java?
Why is stringbuffer called mutable?
In how many ways we can do synchronization in java?
What is the maximum size of array in java?
What about abstract classes in java?