• Post Reply Bookmark Topic Watch Topic
  • New Topic

Serializable objects ?  RSS feed

 
Steve Yu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. What's exactly serializable objects ? What kind of objects can be serializable objects ? It just sounds bit abstarct idea for me, can you help with concrete example so as if I can "see" what's going on.

2. If I create my own data structure, how do I know if it is serializable or not ?

thanks.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I create my own data structure, how do I know if it is serializable or not ?

Java classes that implements the marker interface java.io.Serializable can be serialized.

Srini
[ October 11, 2004: Message edited by: srini vasan ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!