i serialized object of user defined linked list class, every node of list memory location in heap, while deserializing if memory location occupied particular node , example
if memory of node 2 i.e. 200 occupied how node 1 knows , how list deserialize? or in java memory allocation happens in different way.
jvm responsible of object's management in memory. after gc
executed, objects allocated in memory can moved, linkedlist
doesn't points fixed adress reference
java has no pointers, references objects (safe references). reference similar pointer, because points variable, object, cannot view or edit address memory of reference (unlike c example).
Comments
Post a Comment