top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Do Java Serialize Static fields?

+1 vote
276 views
Do Java Serialize Static fields?
posted Dec 30, 2014 by Shyam

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

1 Answer

0 votes

No. Static fields are serialized. When object is de-serialized, values of static fields are set to values stored in corresponding class variable.

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