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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -