how many ways we can serialize the java object?
Answers were Sorted based on User's Feedback
Answer / manikandansit
in two ways we can serialize java object by implementing
Serializable and Externalizable interface
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
What does sprintf mean?
Can you add null to a list java?
What is meant by JVM ?
Does java allow default arguments?
What is anagram of a string?
what happens when we add the objects morethan the size limit to a hashmap
What are the features of junit?
How GUI component handle its own events?
How do you use wildcards?
What is the use of singleton class?
Why is stringbuffer faster than string?
Explain different forms of polymorphism?