java.io.StreamCorruptedException: invalid type code: AC

Problem Description: when ObjectOutputStream serializes and writes objects to a file by appending, it only wants to append objects to the end of the file each time instead of overwriting them. You can use fileoutputstream (file name, true) as a constructor parameter and write objects with the writeObject() method. ObjectInputStream ois = new O ...

Added by bmpco on Thu, 18 Nov 2021 18:49:59 +0200