Serialization of ArrayList and Vector

xiaoxiao2021-03-06  101

Look at the following statement, know where the problem is:

ArrayList:

Private Transient Object ElementData [];

Vector:

Protected Object ElementData [];

After the reverse sequence, the Elements of ArrayList is lost!

转载请注明原文地址:https://www.9cbs.com/read-103615.html

New Post(0)