java transient关键字做用,使用场景。

transient的做用及使用方法,官方解释为:java Variables may be marked transient to indicate that they are not part of the persistent state of an object. 咱们都知道一个对象只要实现了Serilizable接口,这个对象就能够被序列化,java的这种序列化模式为开发者提供了不少便利,
相关文章
相关标签/搜索