Answer Posted / bindhu
The class whose instances are to be serialized
should implement an interface Serializable. Then pass the
instances to the ObjectOutputStream which is connected to a
FileOutputStream. This will save the object to a file...
When an object ios serialized, all the included
objects are also serialized along with the original object.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Can substring create new object?
What does %d do in java?
What are green threads in java?
Differentiate between nested and inner class in java.
What is final keyword in java?
Is java free for commercial?
Name some classes present in java.util.regex package.
What are the uses of java?
Is string a class?
How to access arraylist elements in java?
What is an object's lock and which object's have locks in java programming?
What is difference between equal and == in java?
Give the difference between the println method and sqrt method?
Can you explain the usages of class.forname()?
What is a arraylist in java?