Meaningless Drivel is fun!
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Serializable" Watch "Serializable" New topic


Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2373

In Struts Javadoc of org.apache.struts.action.ActionForm class, I found the following entry (

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 Software Engineer, TubeMogul, Emeryville, CA, USA.
I agree. Here's the link:
subject: Serializable
It's not a secret anymore!