java - why the header attribute of linked list is set as transient -
java - why the header attribute of linked list is set as transient -
if 1 attribute set transient it's not able serialized, i'm wondering why entry header in linkedlist set transient. part of source code following: public class linkedlist{ private transient entry header = new entry(null, null, null); ... }
it because linkedlist uses serialisation it's own methods. see linkedlist's writeobject , readobject methods.
edited: purchase or rent effective java book j. bloch , read item 75 chapter 11 ;-)
java linked-list
Comments
Post a Comment