Organizational Research By

Surprising Reserch Topic

Question:How do I serialize an object to a file?



asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
23 views



Related Hot Questions

2 Answers

0 votes
The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected to a fileoutputstream. This will save the object to a file.
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes
The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected to a fileoutputstream. This will save the object to a file.
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...