The transient keyword s instance variables that shall not be included in default serialization. Because only objects can be serialized, not classes, transient only works for instance fields.transient is to indicate that the variable is not part of the persistent state of an object. Ex : class Point {
int x,y;
transient float secret;
} when you store this object, only the fiels x,y would be save.
int x,y;
transient float secret;
} when you store this object, only the fiels x,y would be save.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货