• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serialization process

 
Raj chiru
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
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
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many classes that simply can't be serialized. For example, java.net.Socket, representing a network connection, java.io.FileInputStream, 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic