Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

implementing Serializable....?  RSS feed

 
Muhammad Shahzad
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
When we store the state of an object, do the states of our super classes are also stored?
Thanks.
M.Shahzad
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
Muhammad Shahzad
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Sir.
M.Shahzad
Example isn't another way to teach, it is the only way to teach.

Albert Einstein
 
Arvind Varma
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when serialization occurs the state of the object and its super classes is stored. here 'stored' refers to the conversion of the object into stream of bytes...is there anything else i am missing?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arvind Varma:
when serialization occurs the state of the object and its super classes is stored. here 'stored' refers to the conversion of the object into stream of bytes...is there anything else i am missing?

The objects you're serializing must be serializable (see java.io.Serializable).
By the way, this is really not an "EJB and other J2EE techs" subject...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!