transient Fields Variables may be ed transient to indicate that they are not part of the persistent state of an object. If an instance of the class Point:
class Point {
int x, y;
transient float rho, theta;
}
were saved to persistent storage by a system service, then only the fields x and y would be saved. This specification does not yet specify details of such services; we intend to provide them in a future version of this specification. transient Fields Adding or deleting a transient modifier of a field does not break compatibility with pre-existing binaries.
class Point {
int x, y;
transient float rho, theta;
}
were saved to persistent storage by a system service, then only the fields x and y would be saved. This specification does not yet specify details of such services; we intend to provide them in a future version of this specification. transient Fields Adding or deleting a transient modifier of a field does not break compatibility with pre-existing binaries.
解决方案 »
- [闭月羞花猫]问一个使用POI,在excel单元格中设置 斜线的问题!!!!!!!
- 为什么会这样的Vector编译警告
- [求助]JTextField竟然也会出现问题!~~~~~~~
- 同一个Package内的class,有时候可以默认访问,有时候又不行
- 字符串转议问题"\".(没分了就给50吧)
- Runnable接口???
- 请问java里有没有存储颜色值的空间?(在线等)
- 100分急求win2000server+jrun4+mysql3.23 的合理中文解决方案
- 下面static一段为什么写在类的方法外面
- HashMap中的key重复问题(equals hashCode都已重写) ????
- j2sdk的问题
- 对象概念理解有误,求帮助!!
序列化的意思就是你当前的对象Object可以通过“序列化”来变成二进制流而存储在媒质上,
当你需要的时候才取出来,直接成为对象,并且不丢失保存前的状态数值。然而,有些字段是不需要序列化保存的。怎么声明呢?用transient关键字。
我觉得: feiyuegaoshan(飞跃) 讲的很有意思,并且很清楚。