top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to serialize objects that contain non serializable object reference ?

+1 vote
192 views
How to serialize objects that contain non serializable object reference ?
posted Dec 30, 2014 by Shyam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

If an object contain non serializable object reference, object can still be serialized if the object reference is marked with transient keyword. For example

Public transient Thread My_Thread;

answer Dec 31, 2014 by Karthick.c
...