于军 发表于 2013-8-16 15:31:46

[Oracle interview]How do I serialize an object to a file?

王浩 发表于 2013-8-16 15:41:39

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.
页: [1]
查看完整版本: [Oracle interview]How do I serialize an object to a file?