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
What is hashing principle in java?
What is :: operator in java?
What is the difference between Java1.4 and Java1.5
Define jre i.e. Java runtime environment?
Does a class inherit the constructors of its superclass in java programming?
What is a wrapper method?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
How can we use primitive data types as objects?
How does hashmap work in java ?
What is java algorithm?
Explain the difference between protected and default access.
Is integer immutable in java?
What is thread synchronization in java?
What are the various access specifiers in java?
What does java stand for?