posted 17 years ago
just look at what you're saying
the container or the compiler, neither know if a javabean class is an attribute class or non-attribute class, all they care is whether you have implemented the interface or not,
if you implement the interface in a class, the class will be notified appropriately...but it wouldn't make much sense if a non-attribute class implemented the HttpSessionActivationListener, it also wouldn't make sense if a serializable attribute class implemented it...why? you tell me
of course there might be other not-so-obvious reasons where it would make sense for any class to implement this interface, but these I believe, are slightly out of the scope of the exam.