Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes serialization process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "serialization process" Watch "serialization process" New topic

serialization process

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
why Java soft peoples (java creators) could not make serialization process ( by default)to all classes in Java API?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24166

There are many classes that simply can't be serialized. For example,, representing a network connection,, representing an open file, or in general, any class that is backed by real operating-system resources. There's no way to automatically get those resources back when deserializing, so there's no way to effectively serialize.

[Jess in Action][AskingGoodQuestions]
It is sorta covered in the JavaRanch Style Guide.
subject: serialization process
Similar Threads
Custom Serialization
Overriding the write/readObject methods when doing serialization.
transient Variable
large object graphs inside an HttpSession?