a)A session attribute can only be a data type that implements the serializable interface b)A container may throw an IllegalArgumentException in the setAttribute() method of HttpSession if the attribute is not Serializable.
which statement is true?Please help.Thanks in Advance
Thank you for quoting your source. I don't think that objects must be Serializable, but it must be a consideration if you are using a distributed environment, where sessions may be migrated. So neither a nor be are correct.