ProAnswers.org

What is the difference between an attribute and a parameter?

The return type of attribute is object, where the return type of parameter is String. The method to retrieve attribute is getAttribute () where as for parameter is getParamter (). We have a method setAttribute to set an attribute. But there is no setters available for setting a parameter.