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的這種序列化模式爲開發者提供了不少便利,
相關文章
相關標籤/搜索