1). In the LinkedList implementation, all 3-element size variables, firstly, the latter are temporary, then what is the point of serialization implementation?
2) What will be saved when trying to serialize LinkedList?
You will notice that it LinkedListhas methods writeObjectand readObject. They write / read the size of the list and write / read each object in the list.
LinkedList
writeObject
readObject
Note that these methods (but also the fields) are private, so the implementation may change. Do not depend on it. Depends on the interfaces.
readObject() writeObject(). , , .
readObject()
writeObject()
Source: https://habr.com/ru/post/1615380/More articles:Прекратить кражу фокуса, не препятствуя открытию выпадающего списка - javascript100+ warnings in the new Xcode 7.1? - iosВ Polymer зачем использовать `` вместо ``? - html5Why are variable member variables widely used in the standard Java library? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1615379/aspnet-5-mvc-6-generic-repository-pattern&usg=ALkJrhh3PVmkLg6TfkhOqpxKgIAciwarmwboost :: proto :: is_aggregate returns false when it is an aggregate type - c ++Jekyll only shows the tag on the page - ruby | fooobar.comWhat assumptions can I make for the local addresses of C ++ variables - c ++How to do List :: Util 'shuffle' reproduces the same result in Perl - perlCalculate the torque needed to align two 3D vectors with constant acceleration? - c ++All Articles