When we serialize objects, static members are not serialized, but if we need to do so, is there any way out?
Yes, we can serialize the static variables. But we can write our own writeObject() and readObject(). I think this can solve the problem.
writeObject()
readObject()