Saving to binary/serialization java

后端 未结 2 365
离开以前
离开以前 2021-01-15 08:32

I have to, quote on quote,

1.Save accounts to a binary (serialized) file. 2.Load (recreate) accounts from a binary (serialized) file.

2条回答
  •  暖寄归人
    2021-01-15 09:08

    First hit on google: http://www.javacoffeebreak.com/articles/serialization/index.html - basically you should serialize your object to a file. Then you can load it into an object again later.

提交回复
热议问题