aspose file tools*
The moose likes Struts and the fly likes Serializable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Serializable" Watch "Serializable" New topic
Author

Serializable

Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

In Struts Javadoc of org.apache.struts.action.ActionForm class, I found the following entry (http://struts.apache.org/api/index.html).

ActionForms are JavaBeans, subclasses should also implement Serializable, as required by the JavaBean specification.

But as we know from Java language basics, if a super class A implements an interface X, then any instance of subclass of class A, for example B that extends class A, will be automatically an instance of C as well. Then why a subclass of ActionForm should implement Serializable again as ActionFrom itself implements Serializable interface?



Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serializable
 
Similar Threads
serialization question
Serializable interface.
Creation of objects and serialzation
Serialization via Inheritance
regarding the marker interface