Why does Java have transient fields?

前端 未结 15 1960
旧时难觅i
旧时难觅i 2020-11-22 03:54

Why does Java have transient fields?

15条回答
  •  醉话见心
    2020-11-22 04:26

    It's needed when you don't want to share some sensitive data that go with serialization.

提交回复
热议问题