Serialization Section Index | Page 4

How do I use the @serialField javadoc tag?

Can I pass Externalizable objects by value using RMI, or do the objects have to implement Serializable directly?

What role does serialization have in RMI?

When using object streams over sockets, I have to flush the streams after each write operation. In fact I even have to flush the output stream soon after creation. Is there a way out of this?

Are there any other FAQs on Serialization?

My subclass implements Serializable but my superclass doesn't. Both subclass and superclass contain instance variables that need to be saved as part of the state of the subclass. Will serialization save the superclass fields for me?

Can I serialize an array directly, or do I have to wrap it in an object first?

How can I save an Image object using serialization?

I'm having trouble getting Externalizable to work. Can you give a simple code example?

What things are required for a class that implements Serializable?

What things are required for a class that implements Externalizable?

How do I use the @serialData javadoc tag?

How do I use the @serial javadoc tag?

How do I handle versioning of my Externalizable classes? Do I have to write a version number to the stream?

Can I use an arbitrary long value for serialVersionUID when I declare it in my class?

About | Sitemap | Contact