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's the base class in java from which all classes are derived?
how to create daemon thread in java?
What is default exception handling in java?
What are the skills required for core java?
What is the difference between abstraction and encapsulation?
What happens to a static var that is defined within a method of a class?
What are aggregate functions explain with examples?
why we use merge option in hybernate pls give a ex snippet
Why collection doesn’t extend cloneable and serializable interfaces?
What is instance synchronization?
why not override thread to make a runnable? : Java thread
What is subsequence of a string?
Is boolean a wrapper class in java?
What is the difference between arraylist and hashset in java?
What is a byte string?