当前位置: 技术问答>java相关
请较两个英文短语的理解
来源: 互联网 发布时间:2015-02-27
本文导语: Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of...
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
请问上面这段话中short term storage 和 long term persistence该怎么理解?谢谢!
请问上面这段话中short term storage 和 long term persistence该怎么理解?谢谢!
|
gdsean is basically right.
Just to clarify one thing, "Serialized" simply means "save". But it doesn't say where to save, but it doesn't say where to save. If it's saved in memory or doing RMI, then is considered "short term". If it is saved to disks, then it will be long term.
Just to clarify one thing, "Serialized" simply means "save". But it doesn't say where to save, but it doesn't say where to save. If it's saved in memory or doing RMI, then is considered "short term". If it is saved to disks, then it will be long term.
|
应该是“短时间的存储”和“长时间的持续”,storage 和 persistence 意思其实都差不多,都是指把内存中的对象保存到别的稳定的介质中,如硬盘等。
|
内存中的对象你要是退出程序或者关机了
他们就不存在了,要是经过Serialized 就可以存在磁盘上面
达到long term persistence的目的
他们就不存在了,要是经过Serialized 就可以存在磁盘上面
达到long term persistence的目的