Leon Omk wrote: isn't it wired that private method is invoked outside it's owner class?
situation matters! serialization technique is performed by JVM , not by other user. so no need for default,protected and public to writeObject method. JVM needs to introspect the class, the solution is reflection.